Re: Today's date + 21 days
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Fri, 12 Sep 2008 17:57:24 -0500
Graham R Seach wrote:
Yes, you're right, but I think you mean...
AND DateSent > Date() - 21
I don't think so.
DateSent + 21 < Date()
....is equivelant to...
DateSent < Date() - 21
Isn't it? If he needed a less-than before he should still need a less-than.
We're just moving the calculaton to the other side of the operator.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
"Rick Brandt" <rickbrandt2@xxxxxxxxxxx> wrote in message
news:t1syk.94$ZP4.40@xxxxxxxxxxxxxxxxxxxxxxx
Graham R Seach wrote:
WHERE Returned = 2 AND DateSent+21 < Date()
Better (performance-wise) would be...
WHERE Returned = 2
AND DateSent < Date() -21
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: Today's date + 21 days
- From: Graham R Seach
- Re: Today's date + 21 days
- References:
- Today's date + 21 days
- From: Pyrite
- Re: Today's date + 21 days
- From: Graham R Seach
- Re: Today's date + 21 days
- From: Rick Brandt
- Re: Today's date + 21 days
- From: Graham R Seach
- Today's date + 21 days
- Prev by Date: RE: Field selected by Combo Box
- Next by Date: Re: How do I set up a query with combo-box?
- Previous by thread: Re: Today's date + 21 days
- Next by thread: Re: Today's date + 21 days
- Index(es):
Relevant Pages
|