G
Guest
Simple question (I hope):
I placed a Calendar control on a report (to make it look spiffy). Now I
would like to print the report with the Calendar heading based on a value the
user inputs.
ie: For October 2007 - print the Calendar with "October" in the heading and
the drop-down box next to the heading and "2007" in the drop-down box next to
the month drop-down.
I thought it would work if I put in the following code:
Private Sub Report_Open(Cancel As Integer)
MoNum = InputBox("Enter the month # to print")
Cal1.Month = MoNum 'also tried "Cal1.Month.Value" &
"Cal1.Value"
End Sub
But it doesn't. Any pointers would be greatly appreciated.
I placed a Calendar control on a report (to make it look spiffy). Now I
would like to print the report with the Calendar heading based on a value the
user inputs.
ie: For October 2007 - print the Calendar with "October" in the heading and
the drop-down box next to the heading and "2007" in the drop-down box next to
the month drop-down.
I thought it would work if I put in the following code:
Private Sub Report_Open(Cancel As Integer)
MoNum = InputBox("Enter the month # to print")
Cal1.Month = MoNum 'also tried "Cal1.Month.Value" &
"Cal1.Value"
End Sub
But it doesn't. Any pointers would be greatly appreciated.