help me check correct reference in Tools-References

M

muybn

After reloading Word, I lost the reference that allows the following code to
execute. It hangs up on "Dim dbDB As Database". If someone can let me know
what I shoud select under "Tools-References," I'd really appreciate it.
(Amongst others, I already have Microsoft Active X Data Objects 2.8 Library"
checked.)

Dim dbDB As Database
…
Set dbDB = OpenDatabase("[path & file]")
dbDB.Execute strSQL
dbDB.Close
 
R

Russ

I did a google search with the terms word and opendatabase and found this:
After reloading Word, I lost the reference that allows the following code to
execute. It hangs up on "Dim dbDB As Database". If someone can let me know
what I shoud select under "Tools-References," I'd really appreciate it.
(Amongst others, I already have Microsoft Active X Data Objects 2.8 Library"
checked.)

Dim dbDB As Database
Š
Set dbDB = OpenDatabase("[path & file]")
dbDB.Execute strSQL
dbDB.Close
 
M

muybn

Thanks, Russ. I found the DAO reference after reading your post. In the
meantime, I successfully switched the statement to utilize an ADO command to
perform the update to the table I was trying to accomplish. Is ADO considered
more "modern" than DAO, or not?

--
Bryan


Russ said:
I did a google search with the terms word and opendatabase and found this:
After reloading Word, I lost the reference that allows the following code to
execute. It hangs up on "Dim dbDB As Database". If someone can let me know
what I shoud select under "Tools-References," I'd really appreciate it.
(Amongst others, I already have Microsoft Active X Data Objects 2.8 Library"
checked.)

Dim dbDB As Database
Å 
Set dbDB = OpenDatabase("[path & file]")
dbDB.Execute strSQL
dbDB.Close
 

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