Re: Date Criteria
- From: "Jeff Boyce" <JeffBoyce_IF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 07:05:34 -0800
Chris
I'm not clear what you mean by EACH DATE, ALL DATES.
Are you saying you want everything in the same month from last year? If so,
you need the first day of the current month and the last day of the current
month, for the current year - 1.
A shortcut way to get the last day of the current month is to set
DateSerial() to the NEXT month, and the day in DateSerial() to "0" (zero).
The zero'th day of a month is the previous month's ending day.
--
Regards
Jeff Boyce
<Office/Access MVP>
"Chris" <Chris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AABFEB4C-9EB0-4304-887A-37060AEBAA23@xxxxxxxxxxxxxxxx
> Please help novice.
>
> The following criteria returns LAST year, THIS month, EACH date -
> TO-CURRENT-DATES only.
>
> Between DateSerial(Year(Date())-1,Month(Date()),1) And
DateAdd("m",-12,Date())
>
> I would like it to return LAST year, THIS month, EACH date, ALL DATES.
>
> I cannot figure it out. Please light this darkenss for me.
>
> --
> Thanks for your help,
> Chris
.
- Prev by Date: Re: Can a query find info X numbr of rows from target info?
- Next by Date: Need help getting information
- Previous by thread: Re: How to say "when" in an expression
- Next by thread: Re: Date Criteria
- Index(es):
Relevant Pages
|
|