I am trying to run queries in other databases by using the following code:
But I keep getting the error of:
Run time error 3622
You must use dbseechanges option with openRecordset option when accessing a SQL server table that has an Identity column
I am by far a beginner using DAO, and am not sure what exactly is causing this error, or how to correct it.
Code:
'Opening the Database
Set db = DBEngine.Workspaces(0).OpenDatabase("C:\Test\Test12\Testdb.mdb")
'Running specified queries
db.Execute "qry_try_This", dbFailOnError
Set db = Nothing
But I keep getting the error of:
Run time error 3622
You must use dbseechanges option with openRecordset option when accessing a SQL server table that has an Identity column
I am by far a beginner using DAO, and am not sure what exactly is causing this error, or how to correct it.