msoFileDialogFilePicker: Variable Not Defined

  • Thread starter Thread starter Stapes
  • Start date Start date
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
 
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
 
Stapes said:
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.

You're far better off using the API code in
http://www.mvps.org/access/api/api0001.htm at "The Access Web". There are
problems with the File Dialog.
 

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

Back
Top