=monthname(month(now())-1)

gilinnc

New member
Local time
Today, 07:19
Joined
Jul 15, 2011
Messages
8
I get a #Func! error on my today report.

What I am doing is that I am putting the last month name on the top of the report.

Since we jump from 2012 to 2013, I have a feeling that it is the cause and the current 'formula' does not work.

Is there a good way to allways put the last month on top of the report? Yes, this is permanent.

Gil
 
Try this..
Code:
MonthName(IIF(Month(Date)=1,12,Month(Date)-1))
 
Thanks, that last one does it. I was not thinking as well as I should.

I figure that if it was January and now()-1 equals to Zero, Access would not think to refer it to December of last year.

I have to redo all my Access stuff to make special consideration on the 'year' change...ugh!

Thank you all for your help and have a great new year!

Gil
 

Users who are viewing this thread

Back
Top Bottom