Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reentrant error message with requery

Status
Not open for further replies.

Informed

Technical User
Aug 11, 2000
3
GB
Why does the following ADO code running off a SQL 7 DB:

With rsReadTableInfo
.Open
.Find "TableName='Variables'"
.Resync adAffectCurrent
.MoveFirst
.Find "TableName='Salutations'"
.Resync adAffectCurrent
End With

generate this error message:

"Consumers event handler called a non-reentrant method in the provider"

The recordset is being opened as a server side, keyset with optimistic
locking.

Thanks, Rob.



 
I think the problem is with double quetes what you should put.
"TableName=''Salutations''"
John Fill
1c.bmp


ivfmd@mail.md
 
John,

It's not the find that generates the error - it's the second resync.

Also, .find "TableName=""Variables""" doesn't work. I think in the area of quotes (which is another problem), ADO should use single quotes.

Cheers, Rob.
 
As you see, in the sample I put twice single quotes. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top