B
Basil
Hiya,
I have a header on a field called "Status". Lets say
[Status] can equal "Returned","Active" or "On Hold".
I want the status field in the report to show the status
followed by something as follows:
[Status] & IIF([Status]="Returned"," in last week"," now")
For some reason this doesn't work
(Returns: "Syntax error in query expression 'First
([[Status] & IIF([Status]="Returned"," in last week","
now")])'.)
But if I have another field (rather than text) at the end
of the statement it does work:
[Status] & IIF([Status]="Returned"," in last week"," now")
& [Status]
Why??? And more importantly how can I get round this?
Thanks loads!
Basil
PS Access 97.
I have a header on a field called "Status". Lets say
[Status] can equal "Returned","Active" or "On Hold".
I want the status field in the report to show the status
followed by something as follows:
[Status] & IIF([Status]="Returned"," in last week"," now")
For some reason this doesn't work
(Returns: "Syntax error in query expression 'First
([[Status] & IIF([Status]="Returned"," in last week","
now")])'.)
But if I have another field (rather than text) at the end
of the statement it does work:
[Status] & IIF([Status]="Returned"," in last week"," now")
& [Status]
Why??? And more importantly how can I get round this?
Thanks loads!
Basil
PS Access 97.