Are the only 2 possible values for [GageChange] Yes or No ?
If so....the iif statement allows a type of "nested loop/else" function.
It gets a little messy if there are too many possible values....but if all
the syntax is correct...things should work fairly reliably.
Try (assuming only 2 values are possible for GageChange):
IIf([GageChange]=Yes,"1",([GageChange]=No,2))
...note that there are 2 closed parentheses on the end to match the 2 opened
on the left.
If you need a Default value (if GageChange is neither Yes or No).....add the
following:
IIf([GageChange]=Yes,"1",([GageChange]=No,2,default value here))
Give these a try....I'm pretty sure all the syntax is correct.
Thanks
in my query this is what i have in the field.
[quoted text clipped - 7 lines]