I
iam
Ok, I put the following code in the OnExit
Private Sub RecipeName_Exit(Cancel As Integer)
If IsNull(Me![RecipeName]) Then
MsgBox "Please enter a Recipe Name."
RecipeName.SetFocus
End If
End Sub
It is bringing up the Msg Box just fine whether I hit enter or tab on
a the blank field.
BUT
It is NOT then giving focus back to the field so the user can enter a
piece of data. It's moving focus to the next field in the tab order.
Why?
Private Sub RecipeName_Exit(Cancel As Integer)
If IsNull(Me![RecipeName]) Then
MsgBox "Please enter a Recipe Name."
RecipeName.SetFocus
End If
End Sub
It is bringing up the Msg Box just fine whether I hit enter or tab on
a the blank field.
BUT
It is NOT then giving focus back to the field so the user can enter a
piece of data. It's moving focus to the next field in the tab order.
Why?