G
Guest
Hi
I'm having trouble in setting the focus of my txtbox. I included the
following codes in the lostfocus event.
If IsNull(Me.txtCat2) Or Me.txtCat2.Value = "" Then
MsgBox "Please select an item on the list", vbOKOnly, "Required Data"
txtCat2.SetFocus
End If
However, when the event is triggered, the focus is set to the next txtbox
based on my tab order. Please help.
I'm having trouble in setting the focus of my txtbox. I included the
following codes in the lostfocus event.
If IsNull(Me.txtCat2) Or Me.txtCat2.Value = "" Then
MsgBox "Please select an item on the list", vbOKOnly, "Required Data"
txtCat2.SetFocus
End If
However, when the event is triggered, the focus is set to the next txtbox
based on my tab order. Please help.