picture

  • Thread starter Thread starter Joel
  • Start date Start date
J

Joel

Hello,

I want to put pictures in my forms. I've borrowed all the code from the
sample Northwind database.

It errors on the code:

With Application.FileDialog(msoFileDialogFilePicker)

It says it cannot find it. It says compile error. Cannot find variable.

I am assuming msoFileDialogFilePicker is the dialog box that comes up so
that you can choose the .jpg file. Maybe this dialog is something that is
embedded in the database. Please help. Thanks a lot!

-Joel
 
You need to include the Microsoft Object Library into the References of your
database so that Access VBA can understand "msoFileDialogFilePicker"
 
How do I do that?

Van T. Dinh said:
You need to include the Microsoft Object Library into the References of your
database so that Access VBA can understand "msoFileDialogFilePicker"
 
In the VBE window, use the Menu Tools / References ... find and check the
Microsoft Office {suitable version number} Object Library.
 
Back
Top