Delete by number of months old

S

stumpy

using <DateAdd("m",-6,Date())
i can delete dates greater than 6 months old but is it possible to do using
an input so the month count can be varied.
Something along the lines of <[oldest date to Keep] but to have it as the
number of months being inputed instead of the date

Any help is appreciated
 
S

stumpy

Much appreciated, Thanks.

RonaldoOneNil said:
<DateAdd("m",[How Many Months]*-1,Date())

stumpy said:
using <DateAdd("m",-6,Date())
i can delete dates greater than 6 months old but is it possible to do using
an input so the month count can be varied.
Something along the lines of <[oldest date to Keep] but to have it as the
number of months being inputed instead of the date

Any help is appreciated
 

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