G
Guest
I have 3 columns (taxable_ac, zone, levy) in a table named "temp".
I would like to update levy with taxable_ac*10 where zone=1 and
taxable_ac*20 where zone=2. I would prefer to avoid using multiple imbedded
if-statements if at all possible. Here is where I got stuck.
UPDATE temp SET temp.levy = taxable_ac*"10"
WHERE temp.zone="1";
I tried the following, but it obviously doesn't work. It should give you an
idea of what i'm trying to do though.
UPDATE temp SET temp.levy = taxable_ac*"10"
WHERE temp.zone="1" AND
UPDATE temp SET temp.levy = taxable_ac*"20"
WHERE temp.zone="2";
I just started using Access yesterday and am trying to get the hang of it.
Thanks for your help.
I would like to update levy with taxable_ac*10 where zone=1 and
taxable_ac*20 where zone=2. I would prefer to avoid using multiple imbedded
if-statements if at all possible. Here is where I got stuck.
UPDATE temp SET temp.levy = taxable_ac*"10"
WHERE temp.zone="1";
I tried the following, but it obviously doesn't work. It should give you an
idea of what i'm trying to do though.
UPDATE temp SET temp.levy = taxable_ac*"10"
WHERE temp.zone="1" AND
UPDATE temp SET temp.levy = taxable_ac*"20"
WHERE temp.zone="2";
I just started using Access yesterday and am trying to get the hang of it.
Thanks for your help.