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

Library References 101

Status
Not open for further replies.
Oct 24, 2002
512
US
I seem to keep tripping over my feet when it comes to library references. Can someone point me to a good primer?

I need answers to very basic questions like:

How do you know which reference(s) you need in your db?
How do you create your own library?
Is there a way to troubleshoot references? (For example, I just found out that some code I borrowed didn't work in my db because I referenced both ADO and DAO. I guess that's a no no because as soon as I removed the reference to ADO the code worked fine.) Ann
 
After posting this I spent some time trying to get familiar with the Object Browser. (I suppose that would be an obvious place to start but, without formal VBA training, my learning experience has been somewhat hit and miss.) I can see where the Object Browser will be a big help to me once I get the hang of it.

When I reference DAO this code works:
Set rsHistory = CurrentDb.OpenRecordset("tblEmployeeAddressHistory", Dynaset)

Using the Object Browser I tried to find comparable code to use if I referenced ADO instead of DAO. It seemed to me that I should change OpenRecordset to Open but I got this compile error with the word Open highlighted: Method or data member not found.

Geez. I sure wish the light bulb would come on. Ann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top