
Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
>> i'm still getting compile error on dim stmt below, even after setting
>> reference to MS Lib 11..any ideas? (access 2003)
[quoted text clipped - 6 lines]
> and
> others -- calling the API directly is really the way to go.
I just saw from a separate message of yours that you *are* referencing
the Office library. So I don't know why you would be getting an error
on the Dim statement. When I test this in Access 2002, though, I get an
error on the line
> Set dlgOpen = Application.FileDialog( _
> FileDialogType:=msoFileDialogOpen)
because the example in the help file is just plain wrong, and the
argument should be specified as:
Set dlgOpen = Application.FileDialog( _
DialogType:=msoFileDialogOpen)
or even just
Set dlgOpen = Application.FileDialog(msoFileDialogOpen)

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)