msoFileDialogFilePicker: Variable Not Defined

S

Stapes

Hi

Why won't this work?
I have already got Microsoft Access 11.0 Object Library ticked.

Dim strFileName As String
With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.Show
strFileName = .SelectedItems(1)
End With


Me.FilePathField.Value = strFileName

Stapes
 
S

Stapes

Hi

Why won't this work?
I have already got Microsoft Access 11.0 Object Library ticked.

Dim strFileName As String
With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.Show
strFileName = .SelectedItems(1)
End With

Me.FilePathField.Value = strFileName

Stapes

I am trying to let my user browse & select a filename for a picture
file. The filename will be stored in the field FilePathField, and a
View Photo button added to display the picture.

Stapes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top