Re: Comparing two date fields



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


.



Relevant Pages