M
Mr. Me
I have Access 2000. I need to make a form where the user choose an MDB file
to open, so he can then choose a table, and print the fields listed in that
table. I found an example which uses Office.Filedialog. The example uses a
property called SelectedItems, but I only want the user to choose one file,
not multiple.
What is the property returned when choosing a single item in the File Browse
dialog? I tried .Filename but that gave me an error.
Thanks.
Code starts like this:
Dim fDialog As Office.FileDialog
Dim filename As String
Set fDialog = Application.FileDialog(msoFileDialogFilePicker)
to open, so he can then choose a table, and print the fields listed in that
table. I found an example which uses Office.Filedialog. The example uses a
property called SelectedItems, but I only want the user to choose one file,
not multiple.
What is the property returned when choosing a single item in the File Browse
dialog? I tried .Filename but that gave me an error.
Thanks.
Code starts like this:
Dim fDialog As Office.FileDialog
Dim filename As String
Set fDialog = Application.FileDialog(msoFileDialogFilePicker)