Re: Monday-Sunday Date Range
- From: "[MVP] S.Clark" <steve.clark_NOSPAM@xxxxxxxxxx>
- Date: Fri, 25 Aug 2006 13:24:50 -0400
You've overthought the play, as
Between Now()-1 and Now()-7 would do.
As far as scheduling the query to run every sunday at 1:30am, Total Visual
Agent can help.
http://www.fmsinc.com/products/agent/index.html
--
Steve Clark, Access MVP
FMS, Inc
http://www.fmsinc.com/consulting
Professional Access Database Repair
*FREE* Access Tips: http://www.fmsinc.com/free/tips.html
"Moochie169" <Moochie169@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AC99CD3D-2550-4557-A906-6DA976C1CDF0@xxxxxxxxxxxxxxxx
Hi,
I'm not very strong with Date functions especially calculating dates. But
I
have a report that I would like to automatically run every Monday morning
at
130AM. Many of my queries involved a date range which is the previous
Monday
to Sunday. I was wondering if someone can help me out so I can finally
sleep
early on Sundays.
I've look around and cannot find what I need. Here's what I have so far.
BeginDate: DateAdd("d",-7,Now())
EndDate: DateAdd("d",-1,Now())
My date criteria is
Between DateAdd("d",-7,Now()) And DateAdd("d",-1,Now())
I know this is not the most efficient way and that is also taking in the
time into consideration. But I'm running out of ideas.
Thanks for your help.
.
- Prev by Date: Re: Evaluating Strings in Query Builder
- Next by Date: Re: Query Avg / Ignore Null Values and Zeros
- Previous by thread: Re: Evaluating Strings in Query Builder
- Next by thread: SQL Pass Thru from normal qry
- Index(es):
Relevant Pages
|