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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report date field and sort it by year/Month/Week (Oldest to Newest)

Status
Not open for further replies.

TJVFree

Technical User
Nov 22, 2010
236
US
Hello,

I'm trying to create a report based on a query

I'm looking for a formula that will take my Report date field and sort it by year (Oldest to Newest)
I would also like to put this date in a Colum header for each row year (Oldest to Newest)

I would like to continue breaking down the query/Report to take Report date field and sort it by month (Oldest to Newest)
again I would also like to put this date in a Colum header for each row year (Oldest to Newest)

Is there a formula that will do this in the query and if need be the report


Please see the attached report for an example

I'm also looking for a way I can take this report sort (Oldest to Newest) and on a form allow me to enter an amount (example) 500,000 from older Report Amount and export all those account that add up to 500,000

Thank – TCB


TCB
 
How far did you get? What version of Access?
All versions have a decent interface for choosing fields to sort/group. If you select a date field, you have the ability to select the date interval like Year, Month, Quarter,... Everything you need is there.

To get the values that add up to a specific number, you could use a running sum sub query in your query. I expect you could also set the running sum on a text box in the report and then cancel the printing of the report section when you reach a specific value.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top