Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

so close with running sum

Status
Not open for further replies.

Prufrock

Instructor
Sep 4, 2002
77
AU
I am so close I can taste it and hope someone can just get me over the line.

I have a form and subform based on a query. When I select an ID number a sub form shows me following fields:
[PaymentNumber][ID][Date][AmountDue][AmountPaid][AmountOwing][TotalOwing]

I have a calculated field in the query that takes AmountPaid from AmountDue. Sometimes not all is paid.

Now I have used a further calculated field in query that attempts a running sum of the TotalOwing. I am getting the exact amount in AmountOwing repeated in TotalOwing in each row of this datasheet form but no running sum occuring. My calculation is

Subtotal: DSum("[AmountOwing]","[qryRentPaymentsPreFinal]","[PaymentNumber] =" & [PaymentNumber])

What do I need to do to get it adding each Owing amount together? Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top