R
Renae
I am new to Access. I am trying to do an "IF" statement from the Query but
having trouble. From the discussions I have read, it appears I probably need
to do a "Select Case???" because there is to many variables in the "IF"
statement. I am not sure what a Select Case is.
Here is what I am attempting to do.
if (Age) = 1 & (Size) <= 20 then .05 else
if (Age) = 1 & (Size) <= 25 then .08 else
if (Age) = 1 & (Size) <= 30 then .09 else
if (Age) = 1 & (Size) <= 99 then 1 else
if (Age) = 2 & (Size) <= 5 then 0.00 else
if (Age) = 2 & (Size) <= 10 then .10 else
if (Age) = 2 & (Size) <= 15 then .20 else
if (Age) = 2 & (Size) <= 20 then .40 else
if (Age) = 2 & (Size) <= 25 then .70 else
if (Age) = 2 & (Size) <= 30 then .80 else
if (Age) = 2 & (Size) <= 99 then .90 else
if (Age) = 3 & (Size) <= 10 then .05 else
if (Age) = 3 & (Size) <= 15 then .15 else
if (Age) = 3 & (Size) <= 20 then .30 else
if (Age) = 3 & (Size) <= 25 then .60 else
if (Age) = 3 & (Size) <= 30 then .75 else
if (Age) = 3 & (Size) <= 99 then .85 else
if (Age) = 9 & (Size) <= 5 then 0.00 else
if (Age) = 9 & (Size) <= 10 then 0.00 else
if (Age) = 9 & (Size) <= 15 then .05 else
if (Age) = 9 & (Size) <= 20 then .15 else
if (Age) = 9 & (Size) <= 25 then .30 else
if (Age) = 9 & (Size) <= 30 then .50 else
if (Age) = 9 & (Size) <= 99 then .75 else
I want the calculations to show in a separate field and not replace any
fields.
Please help.
Thanks
having trouble. From the discussions I have read, it appears I probably need
to do a "Select Case???" because there is to many variables in the "IF"
statement. I am not sure what a Select Case is.
Here is what I am attempting to do.
if (Age) = 1 & (Size) <= 20 then .05 else
if (Age) = 1 & (Size) <= 25 then .08 else
if (Age) = 1 & (Size) <= 30 then .09 else
if (Age) = 1 & (Size) <= 99 then 1 else
if (Age) = 2 & (Size) <= 5 then 0.00 else
if (Age) = 2 & (Size) <= 10 then .10 else
if (Age) = 2 & (Size) <= 15 then .20 else
if (Age) = 2 & (Size) <= 20 then .40 else
if (Age) = 2 & (Size) <= 25 then .70 else
if (Age) = 2 & (Size) <= 30 then .80 else
if (Age) = 2 & (Size) <= 99 then .90 else
if (Age) = 3 & (Size) <= 10 then .05 else
if (Age) = 3 & (Size) <= 15 then .15 else
if (Age) = 3 & (Size) <= 20 then .30 else
if (Age) = 3 & (Size) <= 25 then .60 else
if (Age) = 3 & (Size) <= 30 then .75 else
if (Age) = 3 & (Size) <= 99 then .85 else
if (Age) = 9 & (Size) <= 5 then 0.00 else
if (Age) = 9 & (Size) <= 10 then 0.00 else
if (Age) = 9 & (Size) <= 15 then .05 else
if (Age) = 9 & (Size) <= 20 then .15 else
if (Age) = 9 & (Size) <= 25 then .30 else
if (Age) = 9 & (Size) <= 30 then .50 else
if (Age) = 9 & (Size) <= 99 then .75 else
I want the calculations to show in a separate field and not replace any
fields.
Please help.
Thanks