no database reference (1 Viewer)

DewMan

Registered User.
Local time
Today, 06:53
Joined
May 16, 2003
Messages
15
I get an error when I try to ....
DIM as Database

Am I missing a library file??
 

dcx693

Registered User.
Local time
Today, 01:53
Joined
Apr 30, 2003
Messages
3,265
If you're using Access 2000 or higher, DAO is not the default data access language, ADO is. The Database object is a DAO object.

In the VB editor, go to the Tools menu and choose References. Chances are Microsoft ActiveX Data Object is checked and Microsoft DAO 3.x is not checked. Uncheck the ADO reference if you don't need it, and check the DAO. Then try your code.
 

DewMan

Registered User.
Local time
Today, 06:53
Joined
May 16, 2003
Messages
15
OK Thanks a lot.. I just recently uped to 2k so I will probably\be getting DAO ADO mixed up a lot.
 

Users who are viewing this thread

Top Bottom