|
-
Feb 8th, 2000, 11:21 AM
#1
Thread Starter
Addicted Member
What is the proper SQL statement to make Access automatically add or subtract currency entries in a table? I am trying to make a virtual checkbook app that will add or subtract from the balance according to whether the entry is a deposit or deduction.
I don't wan't the user to have to do the math 
Any help is greatly appreciated.
Daniel Christie
-
Feb 8th, 2000, 05:28 PM
#2
Addicted Member
You could either use the UPDATE sql statement or a calculated field on a form.
As you asked for SQL something along these lines;
UPDATE TableWithCurrencyData
SET CurrencyField = CurrencyField + AmountToAddOrSubtract
WHERE IdOfRec = ReqID;
Obviously the variable we are adding could be +ve or -ve.
Hope this helps.
Regards,
John.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|