If statement (1 Viewer)

lwarren1968

Registered User.
Local time
Today, 02:18
Joined
Jan 18, 2013
Messages
77
3 fields involved in this question! I need to write query/statement where IF MAP_Enable = "Y" then return pricing for both Map_Price and MSRP_Price. If "N" then both MAP_Price and MSRP_Price should be blank.

MAP_ENABLE MAP_PRICE MSRP_PRICE
Y 1.99 1.99

Any help would be much appreciated. Thanks.
 

lwarren1968

Registered User.
Local time
Today, 02:18
Joined
Jan 18, 2013
Messages
77
Self taught, sorry. But, yes there is a possibility that the MAP_Enable could be blank.
 

plog

Banishment Pending
Local time
Today, 04:18
Joined
May 11, 2011
Messages
11,653
Nothing to be sorry for, well except not answering my questions.

What have you tried? Post code.

What occurs with those null values?
 

lwarren1968

Registered User.
Local time
Today, 02:18
Joined
Jan 18, 2013
Messages
77
I did one for each using only "Y" as you suggested. Thanks again.

msrp_price_new: IIf([map_enabled]="Y",[msrp_price])
 

Users who are viewing this thread

Top Bottom