Howdo I insert an image control

G

Guest

Is an image control an ActiveX component? Or is it just another name for a
bound object control? How do I insert an image control into a form, the way
the northwoods db has it for its embedded images? I tried changing my jpgs to
bmps for an OLE column in a table so that they would show on a form, but that
didn't work. Like most everyone, I want a picture to show up that changes as
the record changes. But I can't get it to work. I'm using Access 2003.
 
G

Guest

Hi Clddleopard,

An image control you will find on the toolbox - open your form in design
view and drag one across onto your form. You will need to set a default
image value - I would recommend using a blank jpg for this.

Then, on your forms On Current event have code similar to the following:

me.IMAGE_CONTROL_NAME.Picture = PATH_AND_FILENAME

You should consider storing the path and filename for your images in the
table, eg: "f:\pictures\employees\bobsmith.jpg"

Hope this helps.

Damian.
 

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

Top