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

VB COMPILE ERROR! Can't find Project or Library. HELP!!!

Status
Not open for further replies.

kjenkinz

Technical User
Jan 24, 2003
16
US
I just installed XP and now when I try and run my old VB code is MS Access 2000, I get this error ---->

Can't find Project or Library.

Anyone? How can I fix it?
 
It looks like a reference is missing, Look in your references to see which one is missing

Hope this helps
Hymn
 
Hymn, you were correct, there was a missing reference, but I corrected! Now when I run it, I get a runtime error 3001. It is telling me I have an invalid argument. Impossible, I have run this code every other week for the last three years.

CODE (where it is hanging up)

qd.sql = sql
qd.execute
 
if its old code you might need the "Microsoft DAO Object Library" Reference

Hope this helps
Hymn
 
Thanks again hymn, but I followed your advise, clicked on the Microsoft DAO Object Library 3.6 reference and I even added Dim MyRst as DAO.Recordset to my databse and still the same error.
 
without the full code showing I cant help you it might be better to start a new thread and see if someone else can

Hope this helps
Hymn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top