Ask Experts Questions for FREE Help !
Ask
    adnanbpl's Avatar
    adnanbpl Posts: 1, Reputation: 1
    New Member
     
    #1

    Jan 24, 2012, 04:43 AM
    Problem of running sum in query and report
    With the help of Internet Search Engine I found your name as a tutor of ms access. Can you help me to solve my problem?

    I just want Running Sum in a Query in my daily transactions of the customer FILTER BY ACCOUNT NUMBERS seprately. The fields of which we are calculating is:
    CLOSING BALANCE = OPENING BALANCE BILL AMOUNT - PAYMENT RECEIVED

    I am sending you my database structure for the ready reference. Through Dsum Command I am trying to display thr running some but not susscess. Let me see my formula of Dsum kindly correct them.

    CLOSING BALANCE: DSum("[OPBAL] [BILL AMOUNT]-[PAYRCVD]","[LEDGER]","[ACCNO]=" & [ACCNO] & " AND [TID]<=" & [SLNO])


    Kindly help me to sort out the problems

    Thanking you,

    Yours faithfuly,
    Smaaq.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Jan 24, 2012, 04:52 AM
    Have you checked out these tutorials on running sums?

    Running Sum Download Tutorial
    ACC2000: How to Create a Grouped Running Sum in a Query

    You should not have a balance field in your tables. To calculate a running sum, you need to add the incoming amounts and subtract the outgoing ones. So using a DSum is correct, but not the way you are using it.

    Check out those articles and, if you have more specific questions, please ask.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Report Sum totals [ 7 Answers ]

Hi there, I have made a report from a query. I want to sum the totals from a totals column. I have had luck summing the totals from my other columnms by putting a text box control source to =sum(Name) of the appropriate textbox. However for this column I use the same expression =sum(Name)...

Creating a report/query in Access [ 16 Answers ]

I have an acess Database that my boss set up for me. I enter employee names what time they sign in sign out for lunch sign back in and sign out for the day... How do I make a report/or query that can give me a monthly average for each person?

Sum result stored in text box in vb data report [ 1 Answers ]

I have two text boxes to sum in detail section of vb data report and I want to sum in 3rd text box like this in detail section : rpttext1 = rpttext2 + rpttext3

Sum two fields in detail section of vb data report [ 1 Answers ]

Dear Sir, I am using VB Data report and I am getting problem in putting formula How can I get result of sum of two fields in detail section of data report like: text1= Field1 + Field2 (Detail Section) Please give me an early response.


View more questions Search