I am trying to require two fields on a subform. One is Description. Here is the code I have in the lost focus event:
If IsNull(Description) Then
MsgBox "Description Required", vbOKOnly + 64, "Description"
DoCmd.CancelEvent
Me.Description.SetFocus
End If
However it does not set the focus back to the description field. Why is this???
If IsNull(Description) Then
MsgBox "Description Required", vbOKOnly + 64, "Description"
DoCmd.CancelEvent
Me.Description.SetFocus
End If
However it does not set the focus back to the description field. Why is this???