Choosing picture using FileDialog

C

Chico

I need to have the same image choosing function found in
the EMPLOYEES form of the sample database Northwind.

However as I try to replicate all controls and code in my
own form I get the following error:

Compile Error: Variable not defined

and the following code is highlighted:

(msoFileDialogFilePicker)

Can anyone tell me whay I'm doing wrong please?

Chico
 
D

Dirk Goldgar

Chico said:
I need to have the same image choosing function found in
the EMPLOYEES form of the sample database Northwind.

However as I try to replicate all controls and code in my
own form I get the following error:

Compile Error: Variable not defined

and the following code is highlighted:

(msoFileDialogFilePicker)

Can anyone tell me whay I'm doing wrong please?

Chico

I suspect that you just need to set a reference to the Microsoft Office
10.0 (or 11.0, if you're using Access 2003) Object Library. That's
where the "mso" constants are defined. To set the reference, go to the
VB Editor window, click Tools -> References..., locate the reference in
the list and put a check mark in the box next to it.
 
J

John Vinson

We'll be glad to if you explain what you are asking us to help with.

What do you mean by "picture button"? What's the context? What are you
trying to accomplish?
 

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