Need correct SQL parameter syntax for events due in next 30 days. Criteria=Now()-30 not working

I'm trying to run a query, based on an existing query.
I can't get the following to show which dates are due within a year =Now()-30

The SQL view currently is:
SELECT qryEventDates.*, qryEventDates.EventDate
FROM qryEventDates
WHERE (((qryEventDates.EventDate)=Now()-30));

The query is named 1-DueIn30 in the attached Example database.
Example.zip
LVL 1
Gemini GVBA & Database ProgrammerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
You are asking for events which are exactly due 30 or 365 days ago.
I read "within a year" as "being due from now to now + 365 days", which is significantly different from now - something, but that might be just a language issue.
0
Gemini GVBA  & Database ProgrammerAuthor Commented:
Yes sorry looking for tasks due within THE NEXT 30 days.
0
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Without looking into the attachment your query should look like this:
SELECT qryEventDates.*, qryEventDates.EventDate
FROM qryEventDates
WHERE (qryEventDates.EventDate) < Now()+30;

Open in new window

or
SELECT qryEventDates.*, qryEventDates.EventDate
FROM qryEventDates
WHERE (qryEventDates.EventDate) < Now()+30 and (qryEventDates.EventDate)  >= Now()

Open in new window

if you do not want to see events due in the past.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gemini GVBA  & Database ProgrammerAuthor Commented:
That worked perfectly thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.