Changing a Field to more Descriptive Word in Report

J

JWeaver

I have a field in my database that is used to track 3 program types that are
1 character in length. The report is designed to sort by program types and
give a total for each for each employee. Is there a way to convert this one
character to the actual program type on the report? For example, I want to
convert "P" to "PAL" in the report detail summary line.

I appreciate your assistance!
 
F

fredg

I have a field in my database that is used to track 3 program types that are
1 character in length. The report is designed to sort by program types and
give a total for each for each employee. Is there a way to convert this one
character to the actual program type on the report? For example, I want to
convert "P" to "PAL" in the report detail summary line.

I appreciate your assistance!

Do you mean the value of a field in the report can be "P" and you want
it top display "PAL" in the report?
Here is the syntax for 3 possible values, using an unbound text
control:
=IIf([SomeField]= "P","PAL",IIf([SomeField] = "X", "SomeThingElse","A
third value"))
 
J

JWeaver

Thanks, that worked great! I appreciate your help.
--
JWeaver


fredg said:
I have a field in my database that is used to track 3 program types that are
1 character in length. The report is designed to sort by program types and
give a total for each for each employee. Is there a way to convert this one
character to the actual program type on the report? For example, I want to
convert "P" to "PAL" in the report detail summary line.

I appreciate your assistance!

Do you mean the value of a field in the report can be "P" and you want
it top display "PAL" in the report?
Here is the syntax for 3 possible values, using an unbound text
control:
=IIf([SomeField]= "P","PAL",IIf([SomeField] = "X", "SomeThingElse","A
third value"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top