Date Filter

B

bodhisatvaofboogie

I have a list of parts, one column is the date they were added to a system.
The dates range from years and years ago to present.

I want to have my query subtract 12 months from the current date so that it
will automatically omit those parts that have date added that falls within
the last 12 months and do this for me without a prompt

<[Added after what date mm/dd/yyyy]

Currently if I put this line in my query, it will prompt me for the number,
so I have to type in 12 each time. What could I put in as a line to have it
just always subtract 12 months from the current date with no prompt? Thanks
in advance!!!
 
B

bodhisatvaofboogie

Worked great thanks for the help!!!

Ken Snell (MVP) said:
Try this as the Where criterion:
< DateAdd("m", -12, Date())

--

Ken Snell
<MS ACCESS MVP>


bodhisatvaofboogie said:
I have a list of parts, one column is the date they were added to a system.
The dates range from years and years ago to present.

I want to have my query subtract 12 months from the current date so that
it
will automatically omit those parts that have date added that falls within
the last 12 months and do this for me without a prompt

<[Added after what date mm/dd/yyyy]

Currently if I put this line in my query, it will prompt me for the
number,
so I have to type in 12 each time. What could I put in as a line to have
it
just always subtract 12 months from the current date with no prompt?
Thanks
in advance!!!
 

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