T
Tony Williams
Can anyone tell me what's wrong with this code? I want it to return to
Docnametxt if user doesn't fill in data but it doesn't do that.
Private Sub DocNametxt_Exit(Cancel As Integer)
If IsNull(DocNametxt.Value) Then
MsgBox ("You cannot save a record without a Document Name"), vbExclamamtion
DocNametxt.SetFocus
End If
If Me.NewRecord Then
Populate_URN
End If
End Sub
Docnametxt if user doesn't fill in data but it doesn't do that.
Private Sub DocNametxt_Exit(Cancel As Integer)
If IsNull(DocNametxt.Value) Then
MsgBox ("You cannot save a record without a Document Name"), vbExclamamtion
DocNametxt.SetFocus
End If
If Me.NewRecord Then
Populate_URN
End If
End Sub