Hide image based on checkbox

  • Thread starter Thread starter HilcrRWise
  • Start date Start date
H

HilcrRWise

I have a subreport that contains a bound object frame that I want to
hide if a checkbox has not been checked on a form. What code do I use
and where to show/hide the image frame based on the value of the
checkbox.
 
Is this choice to display/not display a choice for the entire Report or a
choice for each record? If the latter, you must store the indication along
with the data; if the former, and the Form is going to be open while the
Report runs, then you can use the following code... substitute your Form
name for frmA, your Option Button name for optB, and your Bound Object Frame
name for fraC, and you want to show the picture only if the Option Button is
checked:

fraC.Visible = Forms!frmA!optB

Larry Linson
Microsoft Access MVP
 
Back
Top