Results 1 to 6 of 6
  1. #1
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338

    Running balance in a form

    Hello



    I have a main form which has different command buttons. From the main form user can go to run a report or enter new data. I have a table which has to fields, amount deposit and amount withdrawal. I would like to put a text box in main form which will show a running balance by subtracting amount deposit and amount withdrawal. Can this be done???


    Thank you,

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Here is what I use in a form for a checkbook. Put an unbound text box in the footer of your form.

    =DSum("Deposits","tblTransactions")-DSum("Withdrawals","tblTransactions")

    Deposits and Withdrawals are field names in the table tblTransactions.
    Alan

  3. #3
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Alan

    I get this error: #Error


    Thank you

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    First, are the items in your formula surrounded by quotes? Are you deposits and withdrawals in your table formatted as numbers and not text? Did you put the unbound text box in the form footer?

    Alan

  5. #5
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    I have the table formatted as currency. I didn't have the text box in the form footer. So now i put it in the form footer but when i open the form in form view i don't see the text box.

    Thank you

  6. #6
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Make sure that your footer is expanded enough to see it.

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

Similar Threads

  1. Show Running Balance on Data Entry Form
    By hawzmolly in forum Forms
    Replies: 5
    Last Post: 06-30-2019, 03:27 AM
  2. Replies: 4
    Last Post: 08-19-2011, 01:53 PM
  3. Replies: 12
    Last Post: 06-10-2011, 10:19 PM
  4. Txt box on form showing 'Balance'
    By wasim_sono in forum Programming
    Replies: 1
    Last Post: 04-25-2006, 05:58 AM
  5. Adding Running Balance from Form to Reports
    By KIDGEO3 in forum Reports
    Replies: 1
    Last Post: 01-18-2006, 08:52 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