Grouping by Past and Future Dates

S

Steve C

In Access 2003, I'm creating a report based on a parameter query that asks
the user for a start date and end date (the data is sales activity tasks that
each have a date when they were/are due). The dates entered are typically
30-40 days older than today's date and 30-40 days out in the future. I want
my report to group by tasks that are due before today's date and ones due in
the future. Any help would be appreciated!
 
D

Duane Hookom

First, IMO parameter prompts are never appropriate user interface. Your users
deserve controls on forms where you can use a calendar control, set defaults,
check for integrity, etc.

That said, you can set a sorting and grouping level to an expression like:
=[DateField]<Date()
 
M

Marshall Barton

Steve said:
In Access 2003, I'm creating a report based on a parameter query that asks
the user for a start date and end date (the data is sales activity tasks that
each have a date when they were/are due). The dates entered are typically
30-40 days older than today's date and 30-40 days out in the future. I want
my report to group by tasks that are due before today's date and ones due in
the future.

Try grouping on an expression like:
=duedate < Date()
 

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

Top