Show previous month

  • Thread starter Thread starter sg
  • Start date Start date
S

sg

Hi,

I like to show previous month on the report during current month, how could
I do this?

Appreciate any help,
Sarah
 
sg said:
Hi,

I like to show previous month on the report during current month, how could I
do this?

Appreciate any help,
Sarah

DateField Between DateSerial(Year(Date), Month(Date)-1,1)
AND DateSerial(Year(Date), Month(Date),0)

The above assumes that your date fields have no time component (all are exactly
midnight). If they do have times other than midnight then use...

DateField Between DateSerial(Year(Date), Month(Date)-1,1)
AND DateSerial(Year(Date), Month(Date),1)
 
Hi Rick

This is very good. But it shows the general date, can I just show month?
Thanks,
Sarah
 

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

Back
Top