Compile Error User defined type not defined

  • Thread starter Thread starter NewTo2002
  • Start date Start date
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!
 
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
 
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
 
Back
Top