J
JamesJ
I'm using AC 2007. I have 2 Calendar Controls on a form. I want one cal
to display the current month and the other to display the next month. I have
this code in the OnLoad of the form:
Private Sub Form_Load()
Me.ctlCal.Value = Now()
Me!ctlCalNextMonth.NextMonth
Me!ctlCalNextMonth.Value = "" 'this is to prevent the highlighting
of a date
End Sub
What happens is when I put the form i design view and save changes
ctlCalNextMonth
displays a different month at runtime and in design view. Seems when I
delete and then
create a new cal control it's ok until I put the form in design view.
I'm sure there's a better way to have the control display the next month.
Any help will be appreciated,
James
to display the current month and the other to display the next month. I have
this code in the OnLoad of the form:
Private Sub Form_Load()
Me.ctlCal.Value = Now()
Me!ctlCalNextMonth.NextMonth
Me!ctlCalNextMonth.Value = "" 'this is to prevent the highlighting
of a date
End Sub
What happens is when I put the form i design view and save changes
ctlCalNextMonth
displays a different month at runtime and in design view. Seems when I
delete and then
create a new cal control it's ok until I put the form in design view.
I'm sure there's a better way to have the control display the next month.
Any help will be appreciated,
James