30 days from current date

dgmorr

Registered User.
Local time
Today, 01:07
Joined
Jan 10, 2007
Messages
71
Hey guys,

I'm trying to pull data that has a due date within 30 days from the current date. I'm trying to use

WHERE x <= Now() + 30

but I'm getting incorrect records. Can someone please help me out? Thanks.
 
its the dateadd function u are looking for
dateadd("d",30,date())

so its

BETWEEN Date() And dateadd("d",30,Date())
 
Thank You!
 
in your date feild criteria you would put the code i showed u.

BETWEEN Date() And dateadd("d",30,Date())

you could use now() but date() is just the date. now has a time associated with it
 

Users who are viewing this thread

Back
Top Bottom