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

Change the way it shows in report

Status
Not open for further replies.

selavarti

Programmer
Feb 24, 2004
33
0
0
US
Hi,

I have a report which shows if a tool with certain barcode is active or inactive. I select the barcode and run the report. Every thing is fine..it runs. But in the report it shows the tool name , baroce and if active it shows 1 and if inactive 0. What I want is in place of 1 it should show "active" and in place of 0 "inactive" repectively.
Can anyone tell me how to do this
thanks
 
In the Control Source field of the Properties Window:
(Remember that you would replace Status with the name you are using for the Active/Inactive field.)

[tt]
=IIf(Status=1,"Active","Inactive")
[/tt]

 
Other methods
=Choose(Status+1,"Inactive","Active")
or set just
[Status]
with the format property set to
"Active";"";"Inactive","N/A"


Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top