Adding Year-to-Date Data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a report where a parameter asks for a begin date (01/01/05) and end
date (1/31/05) that shows sales by customers for that range. Now I would
like to include year to date (01/01/05 - 2/28/05) sales data to my report.
How do I do this? Thanks
 
Create a Totals query that groups by customer and sums the Sales field, with
the following criteria:
=DateVal("1/1/" & Year(Date())) AND < =Date()

Save the query, and create a new query joing the prior query to whatever
tables you need, linking by the Customer primary key.

Hope that helps.
Sprinks
 
Your parameter field refers to a date field? Remove the parameter from that
field, add the field again to the query and use the function year in front of
the field. Make the criteria for that field to be 2005 and that should
always give you year to date
 
Couldn't you remove the paramter from the date field and put the function
year in front of the date field and make the criteria to be 2005? This
should always give you year to date info.
 

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