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

Returning different value

Status
Not open for further replies.

rbescos

Technical User
Jan 3, 2011
14
US
My table has a field called "Reside_Type" which will currently return one of three values. I'm trying to get the report to return one of three numbers instead.

"Primary" should return "1"
"Secondary" should return "2"
"Investment" should return "3"

Thank you in advance
 
Formula:

if {Reside_Type} = "Primary" then "1"
else
if {Reside_Type} = "Secondary" then "2"
else
"3"

This should work, unless there are other data values you did not mention.
 
Thank you kray4660.. It works perfect!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top