what reference library to use for common dialog boxes

D

Dan

I have the OFFICE11 object library checked in the references but still am not
able to use common dialog box objects.
Below are all the references my applicatio is using:
VBA: C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL
Access: C:\Program Files\Microsoft Office\OFFICE11\MSACC.OLB
stdole: C:\WINDOWS\system32\stdole2.tlb
ADODB: C:\Program Files\Common Files\System\ado\msado21.tlb

Which library am I missing?
Thanks in advance for your help.
Dan
 
D

Dirk Goldgar

Dan said:
I have the OFFICE11 object library checked in the references but
still am not able to use common dialog box objects.
Below are all the references my applicatio is using:
VBA: C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL
Access: C:\Program Files\Microsoft Office\OFFICE11\MSACC.OLB
stdole: C:\WINDOWS\system32\stdole2.tlb
ADODB: C:\Program Files\Common Files\System\ado\msado21.tlb

Which library am I missing?

Which common dialogs are you using? Generally, you're better off
avoiding all reference problems by calling the Windows API directly.
See the code at

http://www.mvps.org/access/api/api0001.htm
Call the standard Windows File Open/Save dialog box

and

http://www.mvps.org/access/api/api0002.htm
BrowseFolder Dialog

as well as other articles in the API section of that site, for API code
and examples.
 

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