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!

Help with building a expression FieldA to FieldB 1

Status
Not open for further replies.

lcdhead

IS-IT--Management
Feb 6, 2006
1
US
I have a table with a numeric field named TransType. The field stores a number 1 - 6. I would like to have another field in the database that breaks this down as:
if TransType = 1 then NEWFIELD = "Blue" else
if TransType = 2 then NEWFIELD = "Red" else
if TransType = 3 then NEWFIELD = "Yellow" else etc...

Should I be trying to create a new field in Access to accomplish this? My actual results are displayed on an ASP page over the Intranet. Returning a column "TransType" with numbers in it is not to meaningful to my viewers.

Thanks for any help.
 
Have a look at the Choose function or create a lookup table.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top