iif statement

ChristopherL

Registered User.
Local time
Today, 01:56
Joined
Jul 2, 2013
Messages
90
Hi, I am having some trouble with an iif statement as selecting the field..
I have two columns, one called [sdCounterpartyprice] and one called [bid]

I want to select the [bid] if it's not equal to Null or 0, if it is equal to that then pick [sdCounterpartyprice]

this doesn't work

Code:
CptyPrice: IIf ([bid] is null or = 0; [sdCounterpartyprice]; [bid])
 
Try..
Code:
CptyPrice: IIf (IsNull([bid]) Or [bid] = 0; [sdCounterpartyprice]; [bid])
 
Just remember each condition has to be tested separately.. Glad to help.. :)
 

Users who are viewing this thread

Back
Top Bottom