silentwolf
Active member
- Local time
- Today, 00:34
- Joined
- Jun 12, 2009
- Messages
- 602
Hi guys,
for some odd reason my FileDialog giving me the above mentioned error.
I do have set the object Library 16.0 in the reference and use or like to use the file dialog in one of my forms.
However now it gives me the error when I debug the code.
Database compact and repair I tried as well but not sure where the error can be?
On the line in red it showes me the error.
I also tried to uncheck the Object Library but it tells me it is currently used? Of course I stoped the code and closed the form. But it still wont let me uncheck the Library.
Can someone tell me what the issue is and how I be able to fix it?
Many thanks
Albert
for some odd reason my FileDialog giving me the above mentioned error.
I do have set the object Library 16.0 in the reference and use or like to use the file dialog in one of my forms.
However now it gives me the error when I debug the code.
Database compact and repair I tried as well but not sure where the error can be?
Code:
Private Sub btnBrowse_Click()
On Error GoTo btnBrowse_Click_Error
Dim file As FileDialog
Set file = Application.FileDialog(msoFileDialogFilePicker)
file.AllowMultiSelect = False
If file.Show Then
Me.txtFileLocation = file.SelectedItems.Item(1)
End If
On Error GoTo 0
Exit Sub
btnBrowse_Click_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure btnBrowse_Click, line " & Erl & "."
End Sub
On the line in red it showes me the error.
I also tried to uncheck the Object Library but it tells me it is currently used? Of course I stoped the code and closed the form. But it still wont let me uncheck the Library.
Can someone tell me what the issue is and how I be able to fix it?
Many thanks
Albert