A
Andrew Glennie
Hi All,
I have created a report which details the previous month's training. The
header for this report run this month (January 2009) should say "Report for
December 2008 - Page 1" but it says "Report for December 2009 - page 1". This
is clearly somethnig that only occurs in January.
I have created code which I thought/hoped would fix this but it didn't:
="Report for " & Format$(DateAdd("m",-1,Now()),"mmmm") & " " &
IIf(Month(Now())=1,Format$(DateAdd("y",-1,Now()),"yyyy"),Format$(DateAdd("y",0,Now()),"yyyy")) & " - Page 1"
Can anyone spot the point I have missed?
Regards
Andrew
I have created a report which details the previous month's training. The
header for this report run this month (January 2009) should say "Report for
December 2008 - Page 1" but it says "Report for December 2009 - page 1". This
is clearly somethnig that only occurs in January.
I have created code which I thought/hoped would fix this but it didn't:
="Report for " & Format$(DateAdd("m",-1,Now()),"mmmm") & " " &
IIf(Month(Now())=1,Format$(DateAdd("y",-1,Now()),"yyyy"),Format$(DateAdd("y",0,Now()),"yyyy")) & " - Page 1"
Can anyone spot the point I have missed?
Regards
Andrew