Compile Error User defined type not defined

N

NewTo2002

Hi,

This works fine in Access 97:
Dim db As Database
But in Access 2002 I get an error: Compile Error User defined type not
defined.
It does work in a database that is converted from 97 to 2002.

Why does this happen and what can I do about this?

Thanks!
 
T

Tom Lake

NewTo2002 said:
Hi,

This works fine in Access 97:
Dim db As Database
But in Access 2002 I get an error: Compile Error User defined type not
defined.
It does work in a database that is converted from 97 to 2002.

Why does this happen and what can I do about this?

Try adding the Reference to the Microsoft DAO 3.6 library. To do that, edit
any module and click on Tools, then References. If the DAO library isn't
checked, check it.

Tom Lake
 
N

NewTo2002

That works.
Thanks a lot!


Tom Lake said:
Try adding the Reference to the Microsoft DAO 3.6 library. To do that,
edit any module and click on Tools, then References. If the DAO library
isn't checked, check it.

Tom Lake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top