Hi--
I have a checkbox in the detail section of a report. I need to make it
visible or invisible programatically. I believe that I can do this using
the On Print event of the detail. My problem is that I cannot determine the
code to accomplish it. The checkbox name is SuperT.
Thanks for the help!
Don
Duane Hookom - 27 Sep 2005 18:48 GMT
You can add code to the On Format event like
Me.SuperT.Visible = [some condition relating to bound values]

Signature
Duane Hookom
MS Access MVP
> Hi--
> I have a checkbox in the detail section of a report. I need to make it
[quoted text clipped - 3 lines]
> Thanks for the help!
> Don
Tim Ferguson - 27 Sep 2005 19:08 GMT
> I believe that I can do this using
> the On Print event of the detail. My problem is that I cannot
> determine the code to accomplish it. The checkbox name is SuperT.
Actually, I think it's the OnFormat event of the Detail section.
If This = ToBeHidden
SuperT.Visible = False
Else
SuperT.Visible = True
End If
or the shorter version
SuperT.Visible = Not (This = ToBeHidden)
Hope that helps
Tim F
Don Stone - 27 Sep 2005 19:17 GMT
Thanks so very much. I guess that there are properties that do not come up
when you type the period after the control name, eh?
Don
> Hi--
> I have a checkbox in the detail section of a report. I need to make it
[quoted text clipped - 3 lines]
> Thanks for the help!
> Don