data_analyst
10-23-2000, 03:57 PM
OK, i'm getting this run-time error '-2147217887(80040e21)' and it's about to drive me CRAZY! Any help would be greatly appricated.
I am trying to update a access 97 database with input from a group of comboboxes. Here is some of my code. Again Thank you in advance!
rs.Open "Table", ConString, adOpenKeyset, adLockOptimistic, adCmdTableDirect
rs.Find "CustomerNumber =" & txtcustn.Text, , adSearchForward
If rs.EOF Then
rs.AddNew
End If
rs.Fields("customerNumber") = txtcustn.Text
rs.Fields("Authorized") = CboxAuthorized.Text
rs.Fields("COem") = CboxCOEM.Text
this is where the error is occuring.
rs.Fields.......
rs.fileds.....
rs.fileds....
rs.update
rs.close
I am trying to update a access 97 database with input from a group of comboboxes. Here is some of my code. Again Thank you in advance!
rs.Open "Table", ConString, adOpenKeyset, adLockOptimistic, adCmdTableDirect
rs.Find "CustomerNumber =" & txtcustn.Text, , adSearchForward
If rs.EOF Then
rs.AddNew
End If
rs.Fields("customerNumber") = txtcustn.Text
rs.Fields("Authorized") = CboxAuthorized.Text
rs.Fields("COem") = CboxCOEM.Text
this is where the error is occuring.
rs.Fields.......
rs.fileds.....
rs.fileds....
rs.update
rs.close