Feb 4, 2004 #1 JimFlower Programmer Jun 21, 2001 42 GB I have a Calender Control on a form and I want to set the date to the current date from code
Feb 4, 2004 1 #2 BuGlen MIS Jun 16, 2000 254 US You can assign the current date to the value of the control using the Date() function in the Form_Load event. For example: Code: Private Sub Form_Load() cldrDate.Value = Date End Sub Hope this helps. - Glen Know thy data. Upvote 0 Downvote
You can assign the current date to the value of the control using the Date() function in the Form_Load event. For example: Code: Private Sub Form_Load() cldrDate.Value = Date End Sub Hope this helps. - Glen Know thy data.
Feb 4, 2004 Thread starter #3 JimFlower Programmer Jun 21, 2001 42 GB I was using the on open event it dosn't work there Upvote 0 Downvote
Feb 4, 2004 Thread starter #4 JimFlower Programmer Jun 21, 2001 42 GB Dim mycal As Object Set mycal = Me.DateSelector mycal.Today mycal.Refresh Set mycal = Nothing Also works from the On Load event Upvote 0 Downvote
Dim mycal As Object Set mycal = Me.DateSelector mycal.Today mycal.Refresh Set mycal = Nothing Also works from the On Load event