Hi
I am using Microsoft Access 2003.
I have a test form with a listBox field and a button.
On Button cmdFileDialog_Click(); I have following code.
Private Sub cmdFileDialog_Click()
Dim fDialog As FileDialog
Dim varFile As Variant
' Clear the list box contents.
Me.FileList.RowSource = ""
' Set up the File dialog box.
'Set fDialog = Application.FileDialog(FileDialogType:=msoFileDialogOpen)
Set fDialog = Application.FileDialog(msoFileDialogFilePicker)
....
....
End Sub
I have also added "Microsoft Office 11.0 Object Library " in References code database window.
When I click on button, i am getting error saying "User-defined type not defined" with hightlighted "msoFileDialogFilePicker".
I am lost here again.
Please you suggest any idea.
Many thank
I am using Microsoft Access 2003.
I have a test form with a listBox field and a button.
On Button cmdFileDialog_Click(); I have following code.
Private Sub cmdFileDialog_Click()
Dim fDialog As FileDialog
Dim varFile As Variant
' Clear the list box contents.
Me.FileList.RowSource = ""
' Set up the File dialog box.
'Set fDialog = Application.FileDialog(FileDialogType:=msoFileDialogOpen)
Set fDialog = Application.FileDialog(msoFileDialogFilePicker)
....
....
End Sub
I have also added "Microsoft Office 11.0 Object Library " in References code database window.
When I click on button, i am getting error saying "User-defined type not defined" with hightlighted "msoFileDialogFilePicker".
I am lost here again.
Please you suggest any idea.
Many thank