Checkbox in report detail

  • Thread starter Thread starter Don Stone
  • Start date Start date
D

Don Stone

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
 
You can add code to the On Format event like
Me.SuperT.Visible = [some condition relating to bound values]
 
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
 
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
 
Back
Top