db = currentDB() error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In my forms code I use as usual the following

Dim db as Database
db = CurrentDb( )

This time I got an error:

compile error:
Invalide use of property.

I use Access2000 and of course in the referense is the DAO 3.6 Object
library .

Any ideas please
 
-----Original Message-----
In my forms code I use as usual the following

Dim db as DAO.Database
db = CurrentDb( )

This time I got an error:

compile error:
Invalide use of property.

I use Access2000 and of course in the referense is the DAO 3.6 Object
library .

Any ideas please
 
Back
Top