Choosing picture using FileDialog

  • Thread starter Thread starter Chico
  • Start date Start date
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
 
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.
 
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?
 
Back
Top