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

Reformat query result values for report?

Status
Not open for further replies.

ad2

Technical User
Joined
Dec 31, 2002
Messages
186
Location
US
Hi,

In my subject table the values for male=1, female=2.

In either the query or repost design, how can I display the numbers as their text equivalent so that the user can have a better understanding of the value?

Thanks,
Ad2
 
Code:
SELECT IIF(Sex = 1, "Male", "Female") As SexType FROM TableName

Leslie

In an open world there's no need for windows and gates
 
You may also consider the Choose function.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top