Re: Comparing two date fields
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Fri, 30 Mar 2007 14:31:46 GMT
nikit.kothari@xxxxxxxxx wrote:
I have two date fields, actual and target.
i would like to return all data from the table only if the actual date
is within 30 days after the targeted date.
SELECT *
FROM TableName
WHERE Abs(DateDiff("d", actual, target)) < 31
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: Comparing two date fields
- From: Tom van Stiphout
- Re: Comparing two date fields
- References:
- Comparing two date fields
- From: nikit . kothari
- Comparing two date fields
- Prev by Date: Comparing two date fields
- Next by Date: Re: How to search for a question-mark in an open table with CTRL-F?
- Previous by thread: Comparing two date fields
- Next by thread: Re: Comparing two date fields
- Index(es):
Relevant Pages
|