Hi,
I have linked tables from a sql server 2005 to Access 2003. I can add any
record manually directly into the table but I am having trouble with the "update" when I add the record from the vb code. I keep
getting a message that ODBC---Call Failed.
Run Time Error '3146'. Then the code breaks at ".Update".
thanks
Al
Dim db As Database, rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("tblUserLog", dbOpenDynaset,
dbSeeChanges, dbOptimistic)
With rst
.AddNew
![UserID] = Me![SelectUser]
.Update
End With
rst.Close
Bookmarks