G
Guest
Hi,
I am trying create a report that shows monthly sales for last month and for
a year ago. So if I ran this today it would show April 2005 and April 2004
sales. If I ran in on June 1st it would show May 2005 and May 2004 sales. I
have the queries down but I am trying to create the column label name in the
page header user a text box. I want the column label to read the month and
year only. I already created a column name for last months sales which is:
Last Month
=Format(DateAdd("m",-1,Date()),"mmmm") & " " & Format(Date(),"yyyy")
I want to create a column header for monthly sales year ago. So I want it
to read April 2004 and then have it change to May 2004 when June first rolls
around. Here is what I have but I am getting error messages:
=Format(DateAdd("m",-1,Date()),"mmmm") & " " &
Format(dateadd(“yâ€,-1,Date(),"yyyy"))
Can someone help?
Thanks,
I am trying create a report that shows monthly sales for last month and for
a year ago. So if I ran this today it would show April 2005 and April 2004
sales. If I ran in on June 1st it would show May 2005 and May 2004 sales. I
have the queries down but I am trying to create the column label name in the
page header user a text box. I want the column label to read the month and
year only. I already created a column name for last months sales which is:
Last Month
=Format(DateAdd("m",-1,Date()),"mmmm") & " " & Format(Date(),"yyyy")
I want to create a column header for monthly sales year ago. So I want it
to read April 2004 and then have it change to May 2004 when June first rolls
around. Here is what I have but I am getting error messages:
=Format(DateAdd("m",-1,Date()),"mmmm") & " " &
Format(dateadd(“yâ€,-1,Date(),"yyyy"))
Can someone help?
Thanks,