Hello,
I have a report that I built in Crystal Reports 11. I have been asked to RE-BUILD as a query in Access 2003 for another user that uses Access 2003.
In the query there is a field that is called "STATUS" which consists of numbers or letters that most users do not know the meaning of. In my Crystal Report I created an IF THEN ELSE statement to clarify the meaning of the status numbers.
My Crystal Report code is:
In the Access 2003 query I am using a IIF expression. I can successfully run the query as long as I only use one IIF expression.
My current expression is:
QUESTIONS
[ul]
[li]Can I combine 10 IIF statements in one expression?[/li]
[li]If yes, How?[/li]
[li]If no, is there another way to do this?[/li]
[/ul]
Any and all help is greatly appreciated.
Clay
I have a report that I built in Crystal Reports 11. I have been asked to RE-BUILD as a query in Access 2003 for another user that uses Access 2003.
In the query there is a field that is called "STATUS" which consists of numbers or letters that most users do not know the meaning of. In my Crystal Report I created an IF THEN ELSE statement to clarify the meaning of the status numbers.
My Crystal Report code is:
Code:
if {ASI_SARO_REM.STATUS} = '1' then "Invoice" else
if {ASI_SARO_REM.STATUS} = '2' then "Charges" else
if {ASI_SARO_REM.STATUS} = '3' then "app1" else
if {ASI_SARO_REM.STATUS} = '4' then "app2" else
if {ASI_SARO_REM.STATUS} = '5' then "app3" else
if {ASI_SARO_REM.STATUS} = '6' then "Remit" else
if {ASI_SARO_REM.STATUS} = '7' then "Complete" else
if {ASI_SARO_REM.STATUS} = 'A' then "Accounting Hold" else
if {ASI_SARO_REM.STATUS} = 'Z' then "Sleeping" else
if {ASI_SARO_REM.STATUS} = " " then "In Inspection"
In the Access 2003 query I am using a IIF expression. I can successfully run the query as long as I only use one IIF expression.
My current expression is:
Code:
STATUS: IIf([STATUS]='1',"Invoice",[STATUS])
QUESTIONS
[ul]
[li]Can I combine 10 IIF statements in one expression?[/li]
[li]If yes, How?[/li]
[li]If no, is there another way to do this?[/li]
[/ul]
Any and all help is greatly appreciated.
Clay