Combine TWO IIF(IsNull) Expressions into one control

chapmajm

Registered User.
Local time
Today, 07:50
Joined
Mar 22, 2007
Messages
28
Is it possible to combine two IIf(IsNull) Expressions into one control on a report in design view or in a query without having to do concatenating and looping and what not?

Code:
=IIf(IsNull([Constitutional]),"CONSTITUTIONAL SYMPTOMS: None ",("CONSTITUTIONAL SYMPTOMS: ") & " " & [Constitutional])

I want to be able to put multiple expressions into one control so that my report is like a paragraph.

If not, I did try creating one query that puts all fields belonging in "Constitutional" into a column. Then I made another query with that query as its source and tried using the above code. It gave me an error about circular reference.
 
Not sure exactly what you are wanting but

=IIf(IsNull([Constitutional]) OR IsNull([WhateverOtherField]),"CONSTITUTIONAL SYMPTOMS: None ","CONSTITUTIONAL SYMPTOMS: " & " " & [Constitutional])

OR

=IIf(IsNull([Constitutional]) And IsNull([WhateverOtherField]),"CONSTITUTIONAL SYMPTOMS: None ","CONSTITUTIONAL SYMPTOMS: " & " " & [Constitutional])
 
Ah, I think the AND is null expression will work. Thank you.
 

Users who are viewing this thread

Back
Top Bottom