Hide image based on checkbox

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.
 
L

Larry Linson

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
 

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