G
Guest
I am trying to have my ActiveX calendar control = the monday of the week that
a user fills out a form, but I am having trouble getting the value to be
selected. I have Dim'd a value and that seems to be preset with another day
and I can't figure out how it is getting it...is a redim statement need
somewhere? Here is my simple code.
Private Sub cmdCalendar_Click()
'Displays the calendar
Me.Calendar1.Visible = True
Dim strDay As String
strDay = DateSerial(Year(Now), Month(Now), Weekday(Now)) + 1
Me.Calendar1.Value = strDay
End Sub
a user fills out a form, but I am having trouble getting the value to be
selected. I have Dim'd a value and that seems to be preset with another day
and I can't figure out how it is getting it...is a redim statement need
somewhere? Here is my simple code.
Private Sub cmdCalendar_Click()
'Displays the calendar
Me.Calendar1.Visible = True
Dim strDay As String
strDay = DateSerial(Year(Now), Month(Now), Weekday(Now)) + 1
Me.Calendar1.Value = strDay
End Sub