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

VB6 and Access 2002

Status
Not open for further replies.

kennedymr2

Programmer
May 23, 2001
594
AU
I have written a vb6 (sp6) program on my computer , which uses an access 2000 database
I am running code similiar as follows.

Set db1 = OpenDatabase("c:\Test.mdb")
Set rst1 = db1.OpenRecordset("NFiles", dbOpenTable)
Set rst2 = db1.OpenRecordset("RFiles", dbOpenTable)

ie. I am not using ado

=====================================
Most of the results i get are the same, but, when i use a "seek" in the vb6 program, it appears it is not working the same on the xp computer with access 2002 on it. ie , no errors but the $$$ results are different.

Is there an incompatibility problem with vb6 and access 2002??????

Have posted to this forum, as it seems more of a vb6 problem.

Appreciate any advice.

Regards Kennedymr2
 
Note:

I have now persued this problem a little furthur, and have altered all the code from DAO to ADO, and i believe this has solved the problem.

The problem , i believe, was the seek command was not working properly using DAO.

Could it be that DAO is running out in vb6 and now Ado should be used.?????

Regards Kennedymr2
 
I think MS 2000 changed the way records may be selected, it is really designed for ADO using the selection process with keyed data. I agree the DAO process is on it's way out.
 
ucsjimj (Programmer)

Thanks for your comment.
Will stick to ADO from now on !!!!


Regards Kennedymr2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top