Or Statement (1 Viewer)

kitty77

Registered User.
Local time
Today, 06:34
Joined
May 27, 2019
Messages
712
I'm using the following.

Report ID: IIf([Msamplenumber1] Like "*H*" Or [Msamplenumber2] Like "*H*","In Progress",[Mreportid])

How can I add if Mreportid is null, then "Empty" to the above statement?

Thanks
 

June7

AWF VIP
Local time
Today, 02:34
Joined
Mar 9, 2014
Messages
5,470
Nz([Mreportid], "Empty")

Report ID: IIf([Msamplenumber1] Like "*H*" Or [Msamplenumber2] Like "*H*","In Progress", Nz([Mreportid], "Empty"))
 

kitty77

Registered User.
Local time
Today, 06:34
Joined
May 27, 2019
Messages
712
How would the code look with that added?
 

June7

AWF VIP
Local time
Today, 02:34
Joined
Mar 9, 2014
Messages
5,470
I already edited answer, most likely while you were reading it. Review again.
 

kitty77

Registered User.
Local time
Today, 06:34
Joined
May 27, 2019
Messages
712
Would about this part of the code?

1645991706161.png
 

June7

AWF VIP
Local time
Today, 02:34
Joined
Mar 9, 2014
Messages
5,470
I don't understand last post. Is issue resolved or not?
 

kitty77

Registered User.
Local time
Today, 06:34
Joined
May 27, 2019
Messages
712
It just didn't seem correct but yes, it's just what I'm looking for. Thank You!
 

Users who are viewing this thread

Top Bottom