M
Mark
I have a form with an unbound combo box which contains a
list of choices: "Current Month";"Previous Month";"Current
Year", etc. When the user selects a choice, I have vba
code set the value of an unbound textbox on the same form
to something like "Data reflects records for current
month" or ...current year", and so on. The "current
month" format will be "July", etc. Every choice works for
me except the previous month. If the current month is
July, I can get it to read "...6"(for June). My vba code
is Month(Date)-1. But if I use Format(Month(Date)-
1,"mmmm") it says "January". I want the textbox to read
the previous month in "mmmm" format. What am I missing?
Thanks for any help.
list of choices: "Current Month";"Previous Month";"Current
Year", etc. When the user selects a choice, I have vba
code set the value of an unbound textbox on the same form
to something like "Data reflects records for current
month" or ...current year", and so on. The "current
month" format will be "July", etc. Every choice works for
me except the previous month. If the current month is
July, I can get it to read "...6"(for June). My vba code
is Month(Date)-1. But if I use Format(Month(Date)-
1,"mmmm") it says "January". I want the textbox to read
the previous month in "mmmm" format. What am I missing?
Thanks for any help.