nycbigapple
Technical User
Hi, I am trying to validate a field on a subform, where do I put the validation on the form to prevent the user form leaving the record.
this is what I put on the subform but it goes to next record
Thanks
this is what I put on the subform but it goes to next record
Thanks
Code:
Private Sub Form_AfterUpdate()
If IsNull(txtCompletedDate) = True Then
Me.txtCompletedDate.SetFocus
Cancel = True
End If
End Sub