show only the records that have the date + 30 days

F

Frank Dulk

How do I do in a query to show only the records that have the date + 30 days
that are smaller than the current date?
 
J

John Vinson

How do I do in a query to show only the records that have the date + 30 days
that are smaller than the current date?

Use a criterion of

< DateAdd("d", -30, Date())
 
K

KARL

In the Field: row of the query put [YourDate] + 30

In the Criteria: row of the query put <Date()
 
F

Frank Dulk

But sees that yours not this adding 30 days in the typed date:

would have to be:

MyDate + 30 <Dates ()

Does your example make that?

Excuse my question, but my knowledge are few
 
J

John Vinson

But sees that yours not this adding 30 days in the typed date:

would have to be:

MyDate + 30 <Dates ()

Does your example make that?

Mine is

Mydate < Date() - 30

It is simple algebra; the one expression adds 30 to MyDate before
comparing, the other subtracts 30 from Date before comparing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top