Hi
I have a combo box. One of the columns is calculated from a value on another column.
Example
ALBANY NEW YORK 123 110.7
CHICAGO NEW YORK 450 405
My code is..
SELECT ORIGIN,PORT,KMS,KMS*0.9 AS RATE
All works well, however the formula KMS*0.9 needs to be "dynamic".
I actually have a scale of
0-100 kms = 0.10 per km
101-300 kms=0.095 per km
>300 kms = 0.90 per km
How can I test the value on the 4th (calculated) column so it can check the rate as per scale above and use the correct rate ????
I hope I explained myself correctly...
Thank you so much in advance
I have a combo box. One of the columns is calculated from a value on another column.
Example
ALBANY NEW YORK 123 110.7
CHICAGO NEW YORK 450 405
My code is..
SELECT ORIGIN,PORT,KMS,KMS*0.9 AS RATE
All works well, however the formula KMS*0.9 needs to be "dynamic".
I actually have a scale of
0-100 kms = 0.10 per km
101-300 kms=0.095 per km
>300 kms = 0.90 per km
How can I test the value on the 4th (calculated) column so it can check the rate as per scale above and use the correct rate ????
I hope I explained myself correctly...
Thank you so much in advance