Talismanic
Registered User.
- Local time
- Today, 05:09
- Joined
- May 25, 2000
- Messages
- 377
I am still learning to use recordsets out side of ASP and still having problems with it. I want to update the "Jobs" table with (for now) static data. Here is what I have so far:
Dim rsCOD As DAO.Recordset
Dim strJobName, strJobNumb, strLocation As String
strJobName = "Talismanic"
strJobNumb = "91269"
strLocation = "Access World Forum"
Set rsCOD = CurrentDb.OpenRecordset("Jobs")
rsCOD.addnew
rsCOD([JobName]) = strJobName
rsCOD([JobNumber]) = strJobNumb
rsCOD([Location]) = strLocation
rsCOD.Update
Set rsCOD = Nothing
Which gives me this error
I am guessing there is a problem with the way I opened the recordset or the way I refferenced the fields inside it. Any ideas?
Dim rsCOD As DAO.Recordset
Dim strJobName, strJobNumb, strLocation As String
strJobName = "Talismanic"
strJobNumb = "91269"
strLocation = "Access World Forum"
Set rsCOD = CurrentDb.OpenRecordset("Jobs")
rsCOD.addnew
rsCOD([JobName]) = strJobName
rsCOD([JobNumber]) = strJobNumb
rsCOD([Location]) = strLocation
rsCOD.Update
Set rsCOD = Nothing
Which gives me this error
I am guessing there is a problem with the way I opened the recordset or the way I refferenced the fields inside it. Any ideas?