FileDialog

D

dirk van waes

Hello,
When I use
Dim fd As FileDialog
I get the user-defined/not defined error. What am I doing wrong or what do I
forget?
I'm using access 2003
Thxs
Dirk
 
S

Stefan Hoffmann

hi Dirk,
When I use
Dim fd As FileDialog
I get the user-defined/not defined error. What am I doing wrong or what do I
forget?
I'm using access 2003
You have to set a reference to the Microsoft Office 11 Library (Dim fd
As Office.FileDialog), otherwise you can use Application.FileDialog.


mfG
--> stefan <--
 
A

Allen Browne

Dirk, can I suggest you use the API call instead of the FileDialog object:
http://www.mvps.org/access/api/api0001.htm

As Stefan pointed out, FileDialog requires another reference (increased
chance of a bad reference). It does not work in the runtime version. And it
does not work at all for SaveAs, even though it appears to offer that
option.
 

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