referencing dao using vba

  • Thread starter Thread starter x tomi3440
  • Start date Start date
X

x tomi3440

i want to refer the dao object using programming...
this is not tool->reference and check...
 
Hi
You may use the AddFromFile method available from the VBProject property,
eg:
ThisWorkbook.VBProject.References.AddFromFile _
"C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll"

HTH
Cordially
Pascal
 

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

Back
Top