Compile Error???

mahmudich

Registered User.
Local time
Today, 19:34
Joined
Feb 10, 2003
Messages
73
Hi guys!

I don’t get what’s wrong with my Ms Access 2000.
I declare something like:

Dim db as Database

Or

Dim db as DAO.Database

and get compile error: User-defined type not defined.

What wrong am I doing? Funny thing is list of types (which pops-up after Dim db as …) doesn’t contain Database neither DAO.Database.

Thank you.
 
Check your references (Tools=> References, from any module window), you probably dont have "Microsoft DAO" checked...

Regards

The Mailman
 
Thanks a lot The Mailman, you are the man!;)
 

Users who are viewing this thread

Back
Top Bottom