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!

Convering Numerics into Words

Status
Not open for further replies.

dpwsmw

MIS
Apr 2, 2003
76
US
I have a report and in the report I call data from a query that has a field called choice, 1 = yes 2 = no 3 = not sure. The query has numerics only, I would like to change the values in the report to actually be the text values and not the numerics. Can this be done?

Thanks
 
Put the following into the control source property of the Textbox:

Code:
=Switch([choice]=1,"Yes",[choice]=2,"No",[choice]=3,"Not Sure", True,"No Data")

The No Data option is only there in case there was no choice of 1,2, or 3 in the field. Just change to whatever you want it to say if the records has no data.

[COLOR=006633]Bob Scriver[/color]
MIState1.gif
[COLOR=white 006633]MSU Spartan[/color]
 
Another simple expression is:
=Choose([Choice], "Yes", "No", "Not Sure")

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