How do I "Dim db As Database" using a Access App linked to SQL db

G

Guest

I'm trying to build an unbound MSAccess form to append records to a linked
SQL data table. when I try to set/define the variable using "Dim db As
Database" I get type not found error when I compile the code. Any clues for
me.......TKS....mw
 
J

John Vinson

I'm trying to build an unbound MSAccess form to append records to a linked
SQL data table. when I try to set/define the variable using "Dim db As
Database" I get type not found error when I compile the code. Any clues for
me.......TKS....mw

In the VBA editor, select Tools... References. Make sure that
Microsoft DAO x.xx Object Library (highest version) is checked. With
A2000, VBA defaults to selecting the ActiveX Data Objects (ADOX)
library instead.

John W. Vinson[MVP]
 
G

Guest

Thanks, Nick!
Both of the posts together seems to have cured the ills with it..........Mike
 

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