ThePixelMines
Technical User
I've created a monthly summary report to summarize my invoices. It's based on a date range. I want a header that displays the month and year based on the [End Date] of the requested date range. For the sake of this example imagine I'm using the date range of 4/1/2007 to 4/30/2007. To do so I wrote:
This returns 4 2007 Summary which is pretty close, but I don't want "4" I want "April." So, I added Format:
This is the kicker. When I add the 'Format' I get back January 2007 Summary! What? Why January? No matter what the date range I still get January.
Please...Gurus of Tek-Tips...impart your wisdom upon me.
Thanks in advance.
Check it, Fool!
Code:
=DatePart("m",[End Date]) & " " & DatePart("yyyy",[EndDate]) & " Summary"
Code:
=Format(DatePart("m",[End Date]),"mmmm") & " " & DatePart("yyyy",[EndDate]) & " Summary"
Please...Gurus of Tek-Tips...impart your wisdom upon me.
Thanks in advance.
Check it, Fool!