ArizonaRedneck
Programmer
I'm sure it's very simple to do, but I can't figure out how to increase a value using an update statement.
I have a column named "PreviousBalance" if a condition is met I want to increase it by a value contained in the "Fee" column.
basically: <PreviousBalance> = <PreviousBalance> + <Fee>
then I reset the "Rebill" column
here's the update statement I'm trying
First Parameter Value = "PreviousBalance"
Second Parameter Value= "Fee"
when I try to run it, it gives me the error of
thanks in advance.
-
"Do your duty in all things. You cannot do more, you should never wish to do less." Robert E. Lee
I have a column named "PreviousBalance" if a condition is met I want to increase it by a value contained in the "Fee" column.
basically: <PreviousBalance> = <PreviousBalance> + <Fee>
then I reset the "Rebill" column
here's the update statement I'm trying
Code:
UPDATE tblBilling
SET PreviousBalance = ? + ?, Rebill = '0'
WHERE (Rebill = '1')
Second Parameter Value= "Fee"
when I try to run it, it gives me the error of
both PreviousBalance and Fee are of type float. Rebill is a bit.Application uses a value of the wrong type for the current operation
thanks in advance.
-
"Do your duty in all things. You cannot do more, you should never wish to do less." Robert E. Lee