G
Guest
I am using an ActiveX Calandar Control in one of my forms. When the user
clicks the textbox the calandar becomes visible. After the user selects a
date I would like the textbox to store the calendar value. I can't get it to
work right. Here is what I have....
Private Sub txtStartDate_Click()
Me.calendarStartDate.Visible = True
End Sub
Private Sub calendarStartDate_Enter()
Me.txtStartDate = Me.calendarStartDate.Value
Me.txtStartDate.SetFocus
Me.calendarStartDate.Visible = False
End Sub
With this code as soon as you click anywhere on the calendar it turns
invisible and the date in the textbox doesn't change. Anyone know how to
properly code this?
thanks in advance.
clicks the textbox the calandar becomes visible. After the user selects a
date I would like the textbox to store the calendar value. I can't get it to
work right. Here is what I have....
Private Sub txtStartDate_Click()
Me.calendarStartDate.Visible = True
End Sub
Private Sub calendarStartDate_Enter()
Me.txtStartDate = Me.calendarStartDate.Value
Me.txtStartDate.SetFocus
Me.calendarStartDate.Visible = False
End Sub
With this code as soon as you click anywhere on the calendar it turns
invisible and the date in the textbox doesn't change. Anyone know how to
properly code this?
thanks in advance.