View Full Version : Controlling the display of an image by another field


knightrideruk
11-28-2008, 02:14 AM
Hi This is my first post and I hope someone can help. My problem is as follows: I have created a field in a form in Access 2003 that is "yes/no" and a field which holds an image. what I would like to happen is if the yes/no field is set to 'yes' the image is displayed if 'No' the image is not present. Can anyone help please Knightrideruk Out of the darkness comes light........

DCrake
11-28-2008, 02:41 AM
Use Check box control on your form and by using the OnClick event of the control state that

Me.ImagecontrolName.Visible = Me.CheckboxControl

So if you tick the checkbox on the image will be visible and vice versa.

David

knightrideruk
11-28-2008, 02:52 AM
Thank you for you prompt reply.