Max Right
2010-03-23 18:15:43 UTC
The error I'm getting is: runtime 3622
"You must use the dbSeeChanges option with OpenRecordset when
accessing a SQL Server tables that has an IDENTITY column."
this is the part of my code causing the error....
...
Dim tGC
Set tGC = CurrentDb.OpenRecordset("tblGCdata") <----
....
This error is intermitant and seems to go away when I open the linked
table in access then close it and try running the code again.
what is the reason behind this and what I can do to eliminate this
error?
...perhaps some initial vba code to open and close the table?
"You must use the dbSeeChanges option with OpenRecordset when
accessing a SQL Server tables that has an IDENTITY column."
this is the part of my code causing the error....
...
Dim tGC
Set tGC = CurrentDb.OpenRecordset("tblGCdata") <----
....
This error is intermitant and seems to go away when I open the linked
table in access then close it and try running the code again.
what is the reason behind this and what I can do to eliminate this
error?
...perhaps some initial vba code to open and close the table?