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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yes/No Control

Status
Not open for further replies.

Orcanut

Programmer
Sep 3, 2002
24
CA
I have a report that has a Yes/No control. I would like a result only to print when the control value is -1 (Yes). For No I would like to leave the text box blank.

More emphasis is afforded if the "Nos" are blank than when I try to find the "Yeses" amongst a sea of "Nos" but I can't seem to get the coding right.

Have tried IIf([xxx])=0,Str(""""),-1) in numerous combinations and none work.

Thanks for any help

Jim Baird
 
Jim,

In the On format event of the section where the field is you want to suppress, put code something like this:
Code:
If [YesNoField] = -1 Then
   txtFieldToShow.Visible = True
Else
   txtFieldToShow.Visible = False
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top