I have a form with an unbound text box. I have this code in the On Format event of the header:
Me.Head = "Settlement Report - " & Format(Date, "mmmm") & " " & Format(Date, "yyyy")
This displays "Settlement Report - June 2004", which is great, however, I will be always be generating these reports for the previous month in the current month. I have tried many different ways, and cannot get it to display "Settlement Report - May 2004". I basically need this month -1, but cannot find how to get it. I would like this to be automatic, so I don't need to worry that a change didn't get made. Thanks, Ken.
- If you are flammable and have legs, you are never blocking a fire exit.
Mitch Hedburg
Me.Head = "Settlement Report - " & Format(Date, "mmmm") & " " & Format(Date, "yyyy")
This displays "Settlement Report - June 2004", which is great, however, I will be always be generating these reports for the previous month in the current month. I have tried many different ways, and cannot get it to display "Settlement Report - May 2004". I basically need this month -1, but cannot find how to get it. I would like this to be automatic, so I don't need to worry that a change didn't get made. Thanks, Ken.
- If you are flammable and have legs, you are never blocking a fire exit.
Mitch Hedburg