S
Sandy
I have placed a Calendar Control on my form which has its Control Source as
DateRequired, which is shown in txtDateRequired. I have the following events
:-
Private Sub Form_Open(Cancel As Integer)
Calendar3.Visible = False
End Sub
Private Sub txtDateRequired_GotFocus()
Calendar3.Visible = True
End Sub
Private Sub txtDateRequired_Exit(Cancel As Integer)
Calendar3.Visible = False
End Sub
This all works fine with one exception: I would like after the date has been
inserted into txtDateRequired (by clicking on the calendar), that the tab
key when pressed moves the focus to the next field - which in this case is
the first field on my subform. Currently it moves focus to the second field
on my form, i.e. backwards.
How can I achieve this?
Sandy
DateRequired, which is shown in txtDateRequired. I have the following events
:-
Private Sub Form_Open(Cancel As Integer)
Calendar3.Visible = False
End Sub
Private Sub txtDateRequired_GotFocus()
Calendar3.Visible = True
End Sub
Private Sub txtDateRequired_Exit(Cancel As Integer)
Calendar3.Visible = False
End Sub
This all works fine with one exception: I would like after the date has been
inserted into txtDateRequired (by clicking on the calendar), that the tab
key when pressed moves the focus to the next field - which in this case is
the first field on my subform. Currently it moves focus to the second field
on my form, i.e. backwards.
How can I achieve this?
Sandy