I am trying to get the date and year of the previous month to print out on a report that I've built. I am using the following formula:
if month(CurrentDate)=1 then
" "+MonthName(12) + " " + CStr(Year(CurrentDate)-1)
else
" "+MonthName(Month(CurrentDate)-1) +" " + CStr(Year(CurrentDate))
This works as I would like it to except that it prints out the year as a number. For instance, I would like to see:
July 2003 but it is printing July 2,003.00. What am I doing wrong? Any suggestions would be greatly appreciated.
if month(CurrentDate)=1 then
" "+MonthName(12) + " " + CStr(Year(CurrentDate)-1)
else
" "+MonthName(Month(CurrentDate)-1) +" " + CStr(Year(CurrentDate))
This works as I would like it to except that it prints out the year as a number. For instance, I would like to see:
July 2003 but it is printing July 2,003.00. What am I doing wrong? Any suggestions would be greatly appreciated.