Wouter
Wouter

Reputation: 173

IIf error in MS Access

I have 2 columns in MS Access. Not all rows are filled. What I want to achieve is:

I've been trying everything but can't seem to figure it out. This is what I've been trying:

IIf([W3]>[L3];"1";IIf(IsEmpty([W3]);"0";"-"))

Upvotes: 0

Views: 375

Answers (1)

Gustav
Gustav

Reputation: 56026

Try this:

=IIf(IsNull([W3];"-";IIf([W3]>[L3];"1";"0"))

or:

=IIf([W3] Is Null;"-";IIf([W3]>[L3];"1";"0"))

Upvotes: 2

Related Questions