J
JohnLute
The following code works except for the DoCmd. It returns that there is no
control by that name. I'm not sure how to correct this. Anyone have any ideas?
Thanks!!!
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Forms!frmRevisions!sfrmRevisionsProfiles.Form!txtProfileID) Then
Beep
If MsgBox("Item ID is required!", vbOKOnly + _
vbQuestion) = vbOK Then
DoCmd.GoToControl
"Forms!frmRevisions!sfrmRevisionsProfiles.Form!txtProfileID"
End If
End If
End Sub
control by that name. I'm not sure how to correct this. Anyone have any ideas?
Thanks!!!
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Forms!frmRevisions!sfrmRevisionsProfiles.Form!txtProfileID) Then
Beep
If MsgBox("Item ID is required!", vbOKOnly + _
vbQuestion) = vbOK Then
DoCmd.GoToControl
"Forms!frmRevisions!sfrmRevisionsProfiles.Form!txtProfileID"
End If
End If
End Sub