Results 1 to 4 of 4
  1. #1
    yameen.malix is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2014
    Posts
    4

    A Query that make opening closing balance and also show today movement in DB and CR

    Hi friends I have issue while making a query kindly help me.
    I want to perform in this query that
    Opening balance + Dr - Cr = Closing balance
    And the next day my opening balance will equal to the date() -1 closing balance. And when today’s movement DR and CR take changes it will also take affect on closing balance.


    Here I have two questions 1st is how can I built a qry that will make today’s opening equal to last day closing . Can I have to built two queries or make another table that store last day closing then create relationship and again built a query that perform this If this is possible please tell me the solution this problem I will be thankful in this regard and much be appreciated
    I have make a very long discussion to explain my issue I hope you all easily understand that what I am saying and what I am trying to perform , screenshot is attached that explain my issue.
    Thanks in advance. Click image for larger version. 

Name:	Untitled1.png 
Views:	47 
Size:	39.1 KB 
ID:	16188

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    yameen.malix is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2014
    Posts
    4
    June7 thanks for reply to supporting me , i am not understanding this to perform kindly help me with example if you don't mind.
    how can i use dsum syntax while my criteria is
    todays opening = closing balnce of current date - 1
    so how i can design a query?
    best regards.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    This is not something I've ever had to incorporate in my databases. I don't have a handy example other than references on the web which you will have to adapt. I don't know your db so can't give you specifics for adapting.

    Basically need to sum all the records prior to the current record, but also need to apply filter criteria in the DSum to synchronize with the form if it is filtered. Something like:

    DSum("quantity fieldname", "table or query name", "date fieldname<#" & [date field name] & "# AND CustomerID=" & [CustomerID])

    What filter criteria needs to be included in the DSum depends on your query and form design.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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. Replies: 8
    Last Post: 03-21-2014, 04:31 AM
  3. Replies: 5
    Last Post: 10-12-2012, 11:00 AM
  4. opening balance
    By bazahara in forum Access
    Replies: 1
    Last Post: 02-19-2012, 11:37 PM
  5. Opening balance
    By dref in forum Forms
    Replies: 0
    Last Post: 09-20-2011, 06:24 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