picture

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
 
V

Van T. Dinh

You need to include the Microsoft Object Library into the References of your
database so that Access VBA can understand "msoFileDialogFilePicker"
 
J

Joel

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"
 
V

Van T. Dinh

In the VBE window, use the Menu Tools / References ... find and check the
Microsoft Office {suitable version number} Object Library.
 

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

Similar Threads


Top