Feb 4, 2004 #1 JimFlower Programmer Joined Jun 21, 2001 Messages 42 Location 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 Joined Jun 16, 2000 Messages 254 Location 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 Joined Jun 21, 2001 Messages 42 Location GB I was using the on open event it dosn't work there Upvote 0 Downvote
Feb 4, 2004 Thread starter #4 JimFlower Programmer Joined Jun 21, 2001 Messages 42 Location 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