Query Criteria Fields

G

Guest

I have developed a query which returns data that is limited to a date range.
The date field's criteria looks like: Between #8/15/2005# And #8/19/2005#

Those dates need to be changed weekly (I have another query which is set up
similarly which uses a range of a month). The way this is set up is that I
will manually change the dates of the query every Monday.

Is there any way to automate this somehow? Just looking for ideas.
 
F

fredg

I have developed a query which returns data that is limited to a date range.
The date field's criteria looks like: Between #8/15/2005# And #8/19/2005#

Those dates need to be changed weekly (I have another query which is set up
similarly which uses a range of a month). The way this is set up is that I
will manually change the dates of the query every Monday.

Is there any way to automate this somehow? Just looking for ideas.

Simplest methods....
Why not simply use one query and set it's criteria to
Between [Start Date] and [End Date]

You will be prompted for the dates.

Or.. if you wish the query to always limit itself to the current
week's data, add another column to the query grid

WeekOf:DatePart("ww",[DateField])

As criteria on this column, write
DatePart("ww",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

Similar Threads


Top