Month Header question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good Day,

I have a report that I need to get the column header to say this.

The first one is easy, I have a text box with =format(date(),"mmm") to give
me todays month "Oct" , but now I want the next text box to see the previous
october and formulate that it would be the preceeding month "Sept" and so on
and so forth.

Can you help with the formula for this.

Thank you.
Lou
 
For the previous month, set the Control Source to:
=DateAdd("m", -1, Date())
and the Format property to:
mmm

Use -2 for the month before that, and so on.
 

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

Similar Threads

Custom Grouping 3
Calculating Future Months 3
6 month time bracket in report header 2
Subtracting Months 2
Date Range in Header 1
Date Range in Header 1
Display Current Month 2
Random month column 5

Back
Top