Re: Start date
- From: "George Nicholson" <JunkGeorgeN@xxxxxxx>
- Date: Tue, 10 May 2005 17:04:27 -0500
RevStartDate = IIf(Weekday([StartDate], 2)<=5, [StartDate],
[StartDate]-(Weekday([StartDate],2)-5))
When using Monday (i.e., 2) for the StartOfWeek argument, Saturdays returns
6 and Sundays returns 7)
So: If StartDate <= Friday, use StartDate, otherwise subtract 1 or 2 from
StartDate (i.e., use Friday)
HTH,
--
George Nicholson
Remove 'Junk' from return address.
"Nelson Medeiros via AccessMonster.com" <forum@xxxxxxxxxxxxxxxxxxxxxxxx>
wrote in message news:3c17e21ca98540c3bb4ec47cfcd785e0@xxxxxxxxxxxxxxxxxxxx
>I currently have a startdate column and I need help on how to create a
> formula that looks at all weekend days and return them to friday in this
> query. Can someone Help.
>
> Thanks
.
- Follow-Ups:
- Re: Start date
- From: Nelson Medeiros via AccessMonster.com
- Re: Start date
- References:
- Start date
- From: Nelson Medeiros via AccessMonster.com
- Start date
- Prev by Date: Count on different criteria
- Next by Date: Re: Please help with crosstab queries
- Previous by thread: Start date
- Next by thread: Re: Start date
- Index(es):
Relevant Pages
|