Declare...

  • Thread starter Thread starter Andreas Andreasson
  • Start date Start date
A

Andreas Andreasson

Hi!
I have got a sample where you have to declare a variable as "database".
When i try to execute i got an errormessage - you can not declare as
database. Why??
 
What does the error message actually say? Do you have a reference set to the
DAO library in your database file?
 
I have i Swedish version and therefore I have to translate.
The error message say:
"Error in compilation. Owndefined type has not been defined"
Something about that.
I do not know if I have a reference set to the DAO library in my database
file. How do I know?
/andreas
 
Sounds as if you don't have that reference set. Open Visual Basic Editor
(Alt-F11). Click on Tools | References. Find the Microsoft Data Access
Object Library in the list and select it. Close the window. Try compiling
again.
 
Back
Top