Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Dialog 1

Status
Not open for further replies.

GLENEE

Programmer
Feb 9, 2005
64
0
0
GB
The following should pop up the file dialog folder picker
Dim fd As FileDialog
Dim varSelectedItems As Variant
Set fd = Application.FileDialog(msoFileDialogFolderPicker)

With fd
.Title = "Link CATSData file"
.InitialFileName = "CATSData"
.InitialView = msoFileDialogViewDetails
.ButtonName = "Link"
.Filters.Add Description:="Access Databases (*.mdb)", Extensions:="*.mdb"
.AllowMultiSelect = False

End With

The error i get is 438 "object does not support this property etc" - at the Filters line

I'm using access 2000. Any advice? thanks

ps: how do you show the above as a block of code when composing these questions, i've forgotten how to do it!
 
I think the problem is here:
msoFileDialog[!]Folder[/!]Picker

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Yea, i thinks thats done it - use file instead of folder.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top