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

Show only "yes" on report

Status
Not open for further replies.

meldrape

Programmer
May 12, 2001
516
US
Greetings,

I'm sure this is very simple but I don't know how to do it. I have a report that displays a yes/no field value. Right now it's showing both yes and no but I only want 'yes' to display.

access 2000
the field name is "piecework" so if piecework is true I want it to display 'yes' else display nothing...

Any thoughts? Thank you in advance.
 
In the Yes/No field properties tab (in the table) set the format to ;"Yes";"" . This will show Yes for yes or true values and a blank for no or false values
 
Many thanks for the reply. The option seems to be yes/no (unless I'm missing something) which was already selected. Anyway, it's not working. It still shows no no no no no no yes no no,etc. when I only need yes. Is there an iif statement of somesort I can write for that field? Thanks anyway.
 
Hi Straybullet,

I ended up using this is the control source of the report:

=iif(isnull([PIECEWORK]) or [PIECEWORK]=0,"","Yes")

it's working fine now. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top