G
gmazza via AccessMonster.com
Hey there,
I am having a little problem.
I split my Access database called Admin into a SQL Server database.
I have another Access database called QC that I link to a SQL Server table in
the Admin database.
This table has a field that is an Autonumber.
In my QC database, there were no errors in my code BEFORE I linked to a table
in the Admin database. After I linked, I got an error on this line:
Set rst = CurrentDb.OpenRecordset("ErrorLog", dbOpenDynaset, dbAppendOnly)
saying when using an IDENTITY I need to have dbSeeChanges.
I changed my code to this:
Set rst = CurrentDb.OpenRecordset("ErrorLog", dbOpenDynaset, dbAppendOnly +
dbSeeChanges)
and it worked.
However, I now have added an Autonumber to another table in SQL Server and
I'm getting this error in Access again for a different database.
How can I not have this error? The answer can't be I can't have Autonumbers
in SQL
or
I have to add dbSeeChanges every time I open a recordset for a table that has
Autonumber in SQL Server.
Please help. Thanks!!
I am having a little problem.
I split my Access database called Admin into a SQL Server database.
I have another Access database called QC that I link to a SQL Server table in
the Admin database.
This table has a field that is an Autonumber.
In my QC database, there were no errors in my code BEFORE I linked to a table
in the Admin database. After I linked, I got an error on this line:
Set rst = CurrentDb.OpenRecordset("ErrorLog", dbOpenDynaset, dbAppendOnly)
saying when using an IDENTITY I need to have dbSeeChanges.
I changed my code to this:
Set rst = CurrentDb.OpenRecordset("ErrorLog", dbOpenDynaset, dbAppendOnly +
dbSeeChanges)
and it worked.
However, I now have added an Autonumber to another table in SQL Server and
I'm getting this error in Access again for a different database.
How can I not have this error? The answer can't be I can't have Autonumbers
in SQL
or
I have to add dbSeeChanges every time I open a recordset for a table that has
Autonumber in SQL Server.
Please help. Thanks!!