G
Guest
Hey,
I have a report with a text box named txtGridDate in the report header.
It’s Control Source is =DateSerial(Year(Date()),Month(Date()),1)
and is formatted as mmmm/yyyy which gives me July/2005.
I would like to have a popup form with an Option Group to
enable a user to select one of the following.
Option1 = Previous Month
Option2 = Current Month
Option3 = Next Month
I know I can change the DateSerial by using a –1 month or a
+1 month, but can I do it via code so when they open the report
it will open to June/2005, July/2005 or August/2005.
Of course this would change each month but I only need to see
the current, previous or next regardless of what month is current.
Thanks,
I have a report with a text box named txtGridDate in the report header.
It’s Control Source is =DateSerial(Year(Date()),Month(Date()),1)
and is formatted as mmmm/yyyy which gives me July/2005.
I would like to have a popup form with an Option Group to
enable a user to select one of the following.
Option1 = Previous Month
Option2 = Current Month
Option3 = Next Month
I know I can change the DateSerial by using a –1 month or a
+1 month, but can I do it via code so when they open the report
it will open to June/2005, July/2005 or August/2005.
Of course this would change each month but I only need to see
the current, previous or next regardless of what month is current.
Thanks,