IIF Equation question (1 Viewer)

D

Doghousemom

Guest
I need to read the value of [net] and based on the value return one of two new values. If the value is greater than zero then I want the new value (commission) to be calculated at 50%. If the value is less than zero then I want the commission to be calculated at 33.3%. I've tried the following:

=iif([net]>"0",[net]*0.5),([net]*0.333))
and
iif([net]>"0",[net]*0.5,iff([net]<"0",[net]*0.333)

Neither to any avail.

What really frosts my behind is that I decided to make my life simplier by converting an excel spreadsheet to access. I had the formula working in Excel. I'm still dealing with an MS product but the syntax (and why is if spelled iif?) etc changed. This is my excel equation =IF(H6>0,(H6*0.5),(H6*0.333)) (H6 is net).

help??

Sue
 

Fizzio

Chief Torturer
Local time
Today, 03:12
Joined
Feb 21, 2002
Messages
1,885
Try this

=iif([net]>0,[net]*0.5,[net]*0.333)
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 22:12
Joined
Feb 19, 2002
Messages
43,560
I'll say it in words. Numeric values should not be enclosed in quotes.
 

Users who are viewing this thread

Top Bottom