S
Susan L
This seems my week for questions about date functions. (One yesterday,
another today. I need to "get smart" about date functions.)
I have a monthly report completed 5 days after the end of the prvious month.
In it, I have a calculation based on a control that contains the number of
the previous month.
Up until now (January), this expression for the Control Source has worked:
Month(Now())-1. But, of course, "1" for January results in "0", so my scheme
falls apart.
Can someone tell me what date function to use and the syntax for obtaining
the previous month's value that will produce the correct value even in
January?
another today. I need to "get smart" about date functions.)
I have a monthly report completed 5 days after the end of the prvious month.
In it, I have a calculation based on a control that contains the number of
the previous month.
Up until now (January), this expression for the Control Source has worked:
Month(Now())-1. But, of course, "1" for January results in "0", so my scheme
falls apart.
Can someone tell me what date function to use and the syntax for obtaining
the previous month's value that will produce the correct value even in
January?