In the Lost focus property of a combo box I placed an if statment to check for text, and if no text is found, a msgbox "Must Select Name" appears. The problem is after the code runs, the focus goes to the next textbox in the tab order. I need the focus to remain in the combo box so the user can input the "Name" . Not sure where Im going wrong.
Here is the code im using:
If Me.Ins__.Text = "" Then
MsgBox "Must Select Name"
Me.Ins__.SetFocus
Exit Sub
End If
Thanks
Wrecker
Here is the code im using:
If Me.Ins__.Text = "" Then
MsgBox "Must Select Name"
Me.Ins__.SetFocus
Exit Sub
End If
Thanks
Wrecker