Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / August 2006



Tip: Looking for answers? Try searching our database.

Access problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Hood - 25 Aug 2006 14:38 GMT
This is a similar problem to one posted earlier but occurs with access.

I have some code under a 'save' button which is something like

myRs.fields("myField1").value = "XXXX"
myRs.fields("myField2").value = "YYYY"
myRs.update
myRs.move(0)

This works fine  with the query  myRs.open ("select * from myTable" ) which
returns about 2000 records.

However if the query is changed to myRs.open ("select * from myTable"  where
reference = "ZZZZZ")
which returns only one record. The an error is given ' consumer's event
handler called a non-reentrant method in the provider'

Can anybody help with this

Many thanks
Alan Hood - 25 Aug 2006 15:55 GMT
I was mistaken in my reason for this error.

If the recordset is opened as a table eg.

myRs.open ("myRs", myConn, adOpenDynamic, adLockPessemistic,
adCmdTableDirect)

then it works.

If the adCmdTableDirect is ommited or an SQL query is used then the error
occurs.
Dmitriy Antonov - 25 Aug 2006 16:08 GMT
>I was mistaken in my reason for this error.
>
[quoted text clipped - 7 lines]
> If the adCmdTableDirect is ommited or an SQL query is used then the error
> occurs.

Try adCmdText with SQL query.

Dmitriy.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.