query error

S

smk23

I am getting an error on the following lines:

Set rs = New ADODB.Recordset
Set rs = .OpenRecordset(dbOpenSnapshot, dbSeeChanges)

When it tries to open the recordset, it claims that options are not set to
"dbSeeChanges" which looks to me like it's correctly set. The backend is SQL
server with an identity column (which requires dbSeeChanges). Any ideas?

Thanks!!
 
D

Douglas J. Steele

There is no OpenRecordset method in the DAO model.

What's your complete code (since the . in front of OpenRecordset implies
that that line is within a With construct)?
 
S

smk23

That was it! I was mixing up ADO and DAO. It's DAO apparently that has the
openRecordset method. It's working when I changed to DAO.
Appreciate it!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top