Results 1 to 2 of 2

Thread: What is the proper SQL statement to make Access...

  1. #1

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Post

    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

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    165

    Post

    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
  •  



Click Here to Expand Forum to Full Width