S
Sarah at DaVita
I have an if statement in the on exit comand that says if the control is null
to display a message. I am trying to get it to set the focus on the control
but it is not working. The code I am using is below.
Private Sub Combo7_Exit(Cancel As Integer)
If IsNull(Combo7) Then
MsgBox "LE cannot be null. Please enter the LE number."
End If
Me.Combo7.SetFocus
End Sub
If they do not enter a value in combo7 I want the cursor to stay in that
control.
Any help here would be appreciated.
to display a message. I am trying to get it to set the focus on the control
but it is not working. The code I am using is below.
Private Sub Combo7_Exit(Cancel As Integer)
If IsNull(Combo7) Then
MsgBox "LE cannot be null. Please enter the LE number."
End If
Me.Combo7.SetFocus
End Sub
If they do not enter a value in combo7 I want the cursor to stay in that
control.
Any help here would be appreciated.