Erage an Image control for a record

V

Verle

I have an image control on a form that I use to display a picture for each record - but if there is not a picture associated with a record, it just shows the last displayed image. Is there a way to "erase" the image control other than making it non-visible it (I have a doubleclick event associated with the image control, so don't want to disable or hide it).
 
A

Allen Browne

Place a label on the form as well, with a Caption of "No image".

Toggle the label's Visible property the opposite of your picture, and use
its DblClick event to run your code.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Verle said:
I have an image control on a form that I use to display a picture for each
record - but if there is not a picture associated with a record, it just
shows the last displayed image. Is there a way to "erase" the image control
other than making it non-visible it (I have a doubleclick event associated
with the image control, so don't want to disable or hide it).
 

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