Dates

echo0001

Registered User.
Local time
Today, 19:17
Joined
Aug 30, 2008
Messages
55
I need to run a query that will return all records for a due date within 30 days from the computers date

this is the code i have so far.

SELECT NRTS.Item, NRTS.Description, NRTS.[NRTS No], NRTS.[Serial Number], NRTS.[Cal Due], NRTS.[Allocated To]
FROM NRTS
WHERE [Cal Due]


thank you for your time.
 
WHERE [Cal Due] < DateAdd("d", 30, Date())
 
Code:
SELECT NRTS.Item, NRTS.Description, NRTS.[NRTS No], NRTS.[Serial Number], NRTS.[Cal Due], NRTS.[Allocated To]
FROM NRTS
WHERE [Cal Due] 
BETWEEN Date() - 30 AND Date() + 30;

is one way.
 

Users who are viewing this thread

Back
Top Bottom