DAO ignorance...

D

Dan

Hello,
I'm trying to put together an Access2000 Database. I
needed a certain function and someone was nice enough to
write a vb script for me. Trouble is, it has the line

Dim db As DAO.database

turns out I don't have DAO so this doesnt work. Finally,
my questions. Is DAO something I have to buy? or are there
free versions out there? Once I get it, I just install it
and everything runs fine?

Thanks a bunch,
Dan
 
R

Rick Brandt

Dan said:
Hello,
I'm trying to put together an Access2000 Database. I
needed a certain function and someone was nice enough to
write a vb script for me. Trouble is, it has the line

Dim db As DAO.database

turns out I don't have DAO so this doesnt work. Finally,
my questions. Is DAO something I have to buy? or are there
free versions out there? Once I get it, I just install it
and everything runs fine?

You have DAO, it's just that Access 2000 doesn't use it by default. Open a
code window and then go to Tools - References on the main menu. When the
references dialog comes up scan down until you find the Microsoft DAO 3.6
library (or similar). Check the CheckBox next to that and the code should
start working.
 

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