Calendar poping up on form when not wanted
On two text boxes in a frame I want to enter dates and therefore have a
calendar to pop up. I also have a combobox in the frame for other stuff.
However for some reason when I click on the combobox the calendar pops up.
This only happens the first time, if I close the calendar and then click on
the combobox again then I get my dropdown list. I have a similar issues with
this in another frame but I will wait for an answer on this.
Here is my code:
the procedure to show the calendar
Sub ShowCalendar()
frmCalendar1.Calendar1.Value = Date
frmCalendar1.Show
End Sub
here is the call from one of the text boxes
Private Sub TBReqDueDate_Enter()
ShowCalendar
TBReqDueDate.Value = DateSelected
End Sub
Any help please.
--
Jason V
|