David Ball
Registered User.
- Local time
- Tomorrow, 08:24
- Joined
- Aug 9, 2010
- Messages
- 230
Hi
Using AND with IIF in a query
The IIF statement below works in most cases except where there is no value for the first condition, [ARRIVAL CURRENT ACTUAL] Is Not Null, and there is a value for the second, [ACTUALSTARTSET] Is Not Null. When there is a value for ACTUALSTARTSET and no value for ARRIVAL CURRENT ACTUAL it returns “Yes”, when I thought it should return “No” unless there are values for both.
TESTIf: IIf(([ARRIVAL CURRENT ACTUAL] Is Not Null And [ACTUALSTARTSET] Is Not Null),"Yes","No")
How can I rewrite this to work?
Thanks very much
Dave
Using AND with IIF in a query
The IIF statement below works in most cases except where there is no value for the first condition, [ARRIVAL CURRENT ACTUAL] Is Not Null, and there is a value for the second, [ACTUALSTARTSET] Is Not Null. When there is a value for ACTUALSTARTSET and no value for ARRIVAL CURRENT ACTUAL it returns “Yes”, when I thought it should return “No” unless there are values for both.
TESTIf: IIf(([ARRIVAL CURRENT ACTUAL] Is Not Null And [ACTUALSTARTSET] Is Not Null),"Yes","No")
How can I rewrite this to work?
Thanks very much
Dave