How do I get the open dialog box in Access?

L

Linn Kubler

Hi,

I'm trying to write a macro in Access 2002 that opens the open file dialog
box. The example I found in the online help doesn't work for me, I get an
error when I try to use it.

The example has me define a variable as a FileDialog type like this:
Dim dlgOpen As FileDialog

But when I run the macro I get an error that states:
"User-defined type not defined."
And it points to "FileDialog". I would have thought this was a built in
type if they are going to use it in an example.

Any suggestions?

Thanks in advance,
Linn
 
L

Linn Kubler

Hi Ken,

At least that example seems to work. Would have thought there would be a
simpler method but this should work. Thanks for the info.
Linn
 

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