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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running two processes at same time in MSDE

Status
Not open for further replies.

lagg

Technical User
Oct 14, 2002
111
0
0
IE
A java program which manipulates data in tables of my access database is throwing the following error "Connection is busy with the results of another hstmt", I understand that is because the process are in competition. How can I resoleve this. I originally had my database in MSAccess before converting over to the MSDE and had no problem with Access
 
Alternatively, use second recordset object to return the results of your second query.

something like

objRecordSet.Open "select * from Customer", objConnection, adOpenStatic
do while not objRecordSet.eof
strCustomerId = objRecordSet.Fields("CustomerId").Value
objRecordSet_L2.Open "select * from Site where CustomerId = " & strCustomerId, objConnection, adOpenStatic
do while not objRecordSet_L2.eof
strSiteId = objRecordSet_L2.Fields("SiteId").Value
Print strCustomerId,strSiteId
objRecordSet_L2.MoveNext
loop
objRecordSet.MoveNext
loop

I know this is basic but the logic is the same Andie Harper
"If you can keep your head when all around you have lost theirs, you probably haven't understood the seriousness of the situation"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top