I'm using Access 2002 and I'm trying to open file dialog in a form, so I could choose a single picture file and get the path to it in to a text field. I have created command button (browse) and I tried to paste code that I found in Access help into it, but it doesn't seem to work.
Private Sub browse_Click()
Dim dlgOpen As FileDialog
Set dlgOpen = Application.FileDialog( _
.AllowMultiSelect = False
When I push the browse button I get a "Compile error: User-defined type not defined" and "dlgOpen As FileDialog" is highlighted. Can anyone help me out?