Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide Yes No Check Box

Status
Not open for further replies.

Brogrim

Technical User
Jul 28, 2000
184
IE
I have a table with 5 YES NO Fields. On the report the yes no field show as check boxes.

If the check box is not true I don't want it visible on the report. I am trying an IF statement on the open event of the report

If txtNew = 0 then
txtnew.visible = False

This does not work, any ideas's apprecitaed

 
I think u want that code in the Print/Format Event Section... Try it there... Make sure u are in the DEtail Section where the fields appear. htwh,

Steve Medvid
"IT Consultant & Web Master"

Chester County, PA Residents
Please Show Your Support...
 
Also, don't forget to account for txtNew being = 1:
Code:
If txtNew = 0 then
   txtNew.Visible = False
[COLOR=blue]Else
   txtNew.Visible = True
End[/color]
With the original code, if the first txtNew is 0, it's not visible. If the second txtNew is 1, it's still not visible.....

Hoc nomen meum verum non est.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top