Results 1 to 2 of 2
  1. #1
    bwian1234 is offline Novice
    Windows Vista Access 2003
    Join Date
    Aug 2010
    Posts
    10

    Calculating a balance at at fig.

    I am working on a statement report. We have a table with 4 fields - client-ref, date, invoice, payment



    I have a text box on my form with a button to trigger the report. The text box is for a date that the statement is to run FROM. (they always run up to today)

    The report displays everything fine, but I want a balance outstanding displaying on the report at the first date (the text box)

    So I need to total all the invoices and all the payments UP TO the date in the text box, deduct Payments from Invoices then Pass that figure to the report.
    then display all dates, invoices and payments FROM the date in the text box, up to today.


    sorry, I'm not very good with the queries and I am looking for a kind soul to guide me through how I do it.

    can anyone help?
    thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    You can use a DSum() function, using the textbox as a criteria (less than).

    DLookup Usage Samples
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 03-29-2014, 10:19 AM
  2. Calculating stock balance
    By Demerit in forum Queries
    Replies: 11
    Last Post: 12-17-2013, 01:57 AM
  3. Balance Insert
    By shah1419 in forum Forms
    Replies: 2
    Last Post: 09-22-2013, 08:00 AM
  4. opening balance
    By bazahara in forum Access
    Replies: 1
    Last Post: 02-19-2012, 11:37 PM
  5. I want MSN appear when I am out of balance
    By miziri in forum Programming
    Replies: 4
    Last Post: 06-20-2010, 02:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums