G
Guest
I'm considering changing the connection string for my queries from using ODBC
to OLEDB. However, when I try this I get the following error in one part of
my code:
The error was generated in this...
rstSMF.open "SELECT * FROM tmpSMF WHERE 1=0", cnn, adOpenStatic,
adLockOptimistic
rstSMF.addNew
rstSMF.update
(get the ID using @@IDENT, i need this to poke into a different table)
rstSMF!something = "Some text" *boom*
It appears that under OLEDB, once you have issued an update on a new row,
you're basically locked out and any attempt to change values from that point
on will cause this error. Is this correct?
If so, is there some way to avoid this? I'm not sure where this access
pattern is used, and I'd hate to have to track down every .update in the
entire (very large) app.
Maury
to OLEDB. However, when I try this I get the following error in one part of
my code:
The error was generated in this...
rstSMF.open "SELECT * FROM tmpSMF WHERE 1=0", cnn, adOpenStatic,
adLockOptimistic
rstSMF.addNew
rstSMF.update
(get the ID using @@IDENT, i need this to poke into a different table)
rstSMF!something = "Some text" *boom*
It appears that under OLEDB, once you have issued an update on a new row,
you're basically locked out and any attempt to change values from that point
on will cause this error. Is this correct?
If so, is there some way to avoid this? I'm not sure where this access
pattern is used, and I'd hate to have to track down every .update in the
entire (very large) app.
Maury