> Try the formula I posted. It may need an adjustment by a day either way. If
> you can't figure out how to adjust the dates that are generated by the formula,
[quoted text clipped - 20 lines]
> > > > week. Is there a way around this?
> > > -------
Assuming you are using the query grid.
Put this
BETWEEN DateAdd("yyyy",-1,DateAdd("d",-WeekDay(Date()),Date())) AND DateAdd("d",-WeekDay(Date()),Date())
In the criteria "Cell" under your date field.
What that does is build two dates based on your current system date.
DateAdd("d",-WeekDay(Date()),Date())
returns Nov 19, 2005 which is Saturday of the prior week, If you want Sunday,
This formula
DateAdd("yyyy",-1,DateAdd("d",-WeekDay(Date()),Date()))
takes that and subtracts a year giving you Nov 19,2004
You can use your scheme
>DateAdd("yyyy",-1,DateAdd("d",-WeekDay(Date()),Date())) And <
DateAdd("d",-WeekDay(Date()),Date())
Adjusting to get the dates you posted of 22/11/04 and 21/11/05 would probably be
using this as the criteria.
>DateAdd("yyyy",-1,DateAdd("d",3-WeekDay(Date()),Date())) And < DateAdd("d",2-WeekDay(Date()),Date())
> Sorry, Could you tell me exactly how to write the formula in the query, if I
> am to run it for this week?
[quoted text clipped - 27 lines]
> > > > > week. Is there a way around this?
> > > > -------
Rani - 24 Nov 2005 17:41 GMT
Many Thanks ....
> Assuming you are using the query grid.
>
[quoted text clipped - 49 lines]
> > > > > > week. Is there a way around this?
> > > > > -------