Cumulative Amounts by Month

  • Thread starter Thread starter o wilson
  • Start date Start date
O

o wilson

Hello,
I have a query that shows starting contract value,
payments from contract and amount remaining. I'd like to
show the value remaing by month, but I don't want March's
deductions incuded in the February report, even if the
February report is run in March.

Am I makng any snse at all here?

Thanks,
Owen Wilson
 
Hello,
I have a query that shows starting contract value,
payments from contract and amount remaining. I'd like to
show the value remaing by month, but I don't want March's
deductions incuded in the February report, even if the
February report is run in March.

Am I makng any snse at all here?

Well, yes, but bear in mind that we have no idea how your table stores
the information or what else you want to appear on the report. I would
guess that a DSum() expression calculating the payments up to the end
of the previous month would help:

[balance] - DSum("[Payments]", "[some-table]", "[PaymentDate] < #" &
DateSerial(Year(Date()), Month(Date()), 1) & "#")

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top