can a y/n box add graphics

  • Thread starter Thread starter Iwilfix
  • Start date Start date
I

Iwilfix

I have created a form, in which is a yes/no box.
if the option is chosen "yes", i wish a JPG to be
displayed on that form. If no, it would simply remain blank.
Is thos possible? If so could someone tell me how.
I am just starting out, so I would need simple step by step
instructions. Thanx in advance



Jeff
 
In the AfterUpdate Event of your CheckBox put the following cod
changing YourCheckBox to the name of your check box and YourImage t
the name of your image control.


Code
-------------------

If Me.YourCheckBox = True Then
Me.YourImage.Visible = True
Me.Repaint
Else
Me.YourImage.Visible = False
Me.Repaint
End If
 
In the AfterUpdate Event of your CheckBox put the following cod
changing YourCheckBox to the name of your check box and YourImage t
the name of your image control.


Code
-------------------

If Me.YourCheckBox = True Then
Me.YourImage.Visible = True
Me.Repaint
Else
Me.YourImage.Visible = False
Me.Repaint
End If
 

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

Back
Top