scotthutchings
Registered User.
- Local time
- Yesterday, 16:08
- Joined
- Mar 26, 2010
- Messages
- 96
I successfully (I think) migrated my Access 2007 db to MSSQL Server 2008R2 but I am getting error #3622 "You must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column." when I try to run the following code:
Do you know what is causing this? I get a similar error with the following lines of code:
I don't see a pattern to know what I need to change.
I do not get the error when I run the code:
What is the dbSeeChanges option that is referred to in the error message?
help....
Code:
Set rsCompany = dbs.OpenRecordset("SELECT * FROM [Company Information] WHERE CompanyDefaultLocation Like 'Yes'")
Code:
Set rs = CurrentDb.OpenRecordset("SELECT * From Contacts WHERE ContactCompany =""" & Me.Client & """")
and
Set rsLoginAttempt = db.OpenRecordset("LoginAttempt")
I do not get the error when I run the code:
Code:
Set rs = db.OpenRecordset("SELECT * FROM Employee WHERE EmployeeUserName =""" & EnteredUserName & """")
and
Set rstProjectName = dbs.OpenRecordset("Project File")
help....