Dragonchaser
Registered User.
- Local time
- Today, 13:43
- Joined
- May 15, 2007
- Messages
- 31
Hey there,
I've been trying various types of syntax to get this to work to no avail.
I need to check if a field is Null (used IsNull) and check if another field Null as well before having the IIf function return a true and false value.
I've tried this:
=IIf(IsNull([Forms]![SingleChamberForm]![UpstreamFitting] And [Forms]![SingleChamberForm]![USMidFlange]),"1","2")
And this:
=IIf(IsNull([Forms]![SingleChamberForm]![UpstreamFitting]) And IsNull([Forms]![SingleChamberForm]![USMidFlange]),"1","2")
And a few other combinations.
Even tried:
=IIf(IsNull([Forms]![SingleChamberForm]![UpstreamFitting] And [Forms]![SingleChamberForm]![USMidFlange]),IIf(IsNull....,"","")
Is there an easier solution to this, or is syntax just incorrect?
Any light someone can shed would be much appreciated.
Cheers,
Mark
I've been trying various types of syntax to get this to work to no avail.
I need to check if a field is Null (used IsNull) and check if another field Null as well before having the IIf function return a true and false value.
I've tried this:
=IIf(IsNull([Forms]![SingleChamberForm]![UpstreamFitting] And [Forms]![SingleChamberForm]![USMidFlange]),"1","2")
And this:
=IIf(IsNull([Forms]![SingleChamberForm]![UpstreamFitting]) And IsNull([Forms]![SingleChamberForm]![USMidFlange]),"1","2")
And a few other combinations.
Even tried:
=IIf(IsNull([Forms]![SingleChamberForm]![UpstreamFitting] And [Forms]![SingleChamberForm]![USMidFlange]),IIf(IsNull....,"","")
Is there an easier solution to this, or is syntax just incorrect?
Any light someone can shed would be much appreciated.
Cheers,
Mark