M
Mark A. Sam
Hello,
I have an unbound control on a form with the following code:
Private Sub FullName_BeforeUpdate(Cancel As Integer)
With Me.RecordsetClone
.FindFirst "[FullName] = '" & Me.ActiveControl & "'"
If Not .NoMatch Then
MsgBox Me.ActiveControl & " is already in use. Choose another Full Name
or cancel!"
Cancel = True
FullName.Undo
End If
End With
End Sub
After the Cancel I want the textbox cleared. The Undo of the textbox
doesn't accomplish this.
Thank you for any help and God Bless,
Mark A. Sam
I have an unbound control on a form with the following code:
Private Sub FullName_BeforeUpdate(Cancel As Integer)
With Me.RecordsetClone
.FindFirst "[FullName] = '" & Me.ActiveControl & "'"
If Not .NoMatch Then
MsgBox Me.ActiveControl & " is already in use. Choose another Full Name
or cancel!"
Cancel = True
FullName.Undo
End If
End With
End Sub
After the Cancel I want the textbox cleared. The Undo of the textbox
doesn't accomplish this.
Thank you for any help and God Bless,
Mark A. Sam