Results 1 to 9 of 9
  1. #1
    Burhan_iqbal is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Dec 2017
    Posts
    4

    i want to make a ledger how i show openning balance as start date in access


    in table i have debit , credit and balance please kindly tell me how i make a query that i will get an opening balance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    In the query, sum the debit-credit.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can use DSum() to sum transactions that occur prior to the start date of your report. I would not try to store balance.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Burhan_iqbal is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Dec 2017
    Posts
    4
    if i share my database can u help me out how i get the opening balance

  5. #5
    Join Date
    Apr 2017
    Posts
    1,679
    1. You have a table (tblMovements), where you register all movements with different movement types (incoming, outgoing, correcting, etc.);
    2. You have a table (tblInventory), where you register a balance at certain dates (like an inventory table for goods, but it looks like you will works with accounts instead);
    3. When you register a new account, you enter the opening balance for it into inventory table.

    To calculate a balance at certain date, you find the balance for account in tblInventory with max inventory date before balance date, add all incomes for account from found inventory date until account date, and distract all outgoings for same period.

    To find a opening balance for account, you find from inventory table the balance with smallest inventory date for this account.

  6. #6
    Burhan_iqbal is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Dec 2017
    Posts
    4
    thanks for reply Click image for larger version. 

Name:	ledger.png 
Views:	39 
Size:	70.9 KB 
ID:	37525there is the problem that how i get opening balance in ledger i share the picture also please kindly see and advice me

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    =DSum("Debit - Credit", "TableName", "DateField < #" & FOrms!FormName.StartTextbox & "#")

    Using your actual table/field/object names.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    Burhan_iqbal is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Dec 2017
    Posts
    4
    thanks for all but its not work for me , can you please help me out for opening balance in crystal report

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I don't use Crystal, you may want to start a new thread in a more appropriate forum. Or you could explain what "not work" means exactly. Or attach the db here.
    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: 9
    Last Post: 03-07-2017, 02:49 PM
  2. Replies: 6
    Last Post: 03-02-2016, 12:58 PM
  3. General Ledger Query With Opening Balance and Running Balance
    By muhammadirfanghori in forum Queries
    Replies: 3
    Last Post: 03-12-2015, 07:17 AM
  4. Replies: 1
    Last Post: 03-29-2014, 10:19 AM
  5. Ledger Report with opening balance
    By Mahavir in forum Access
    Replies: 7
    Last Post: 01-10-2012, 03:40 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