DateSerial Question

D

DD

Good Afternoon,

I have inherited an Access database and it contains the following
formula on a date field:

Between DateSerial(DatePart("yyyy",Date()),DatePart("m",Date())-2,1)
And Date()-(DatePart("d",Date()))

I believe this pulls data for the past two months, but I'm not clear on
how the entire functions works.

I would like to use the same formula and pull last 6 months of data,
can use the same formula but change the -2 to a -6?

Any information would be appreciated.

Thanks
 
K

Ken Snell \(MVP\)

Did you try making the change to -6? That should work for you. See
DateSerial function in Help file for more information about it.
 

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