You must use the dbSeeChanges option with OpenRecordSet whenaccessing a SQL Server table that has an

I

iccsi

I got following error message when I migrate my MS Access backend to
SQL Server backend.

Once I added dbSeeChanges option, the programs works.
The only thing is that I had dbFailOnError option which does not allow
me to have 2 options.

Is it possible to have dbFailOnError and dnSeeChanges 2 optins
together, because I want to the application stop when any errors
during open recordset.

Your help is great appreciated,


You must use the dbSeeChanges option with OpenRecordSet when
accessing a SQL Server table that has an IDENTITY column
 
J

John W. Vinson

I got following error message when I migrate my MS Access backend to
SQL Server backend.

Once I added dbSeeChanges option, the programs works.
The only thing is that I had dbFailOnError option which does not allow
me to have 2 options.

Is it possible to have dbFailOnError and dnSeeChanges 2 optins
together, because I want to the application stop when any errors
during open recordset.

Your help is great appreciated,


You must use the dbSeeChanges option with OpenRecordSet when
accessing a SQL Server table that has an IDENTITY column

These flags are bitmapped: dbFailOnError is 128, dbSeeChanges is 512. So you
can pass them both together by just adding them:

DoCmd.OpenRecordset ..., dbSeeChanges + dbFailOnError

You can even add other flags such as dbAppendOnly or dbDenyRead etc. in the
same way.

--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also http://www.utteraccess.com
 

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