Ok, I've searched and can't find an answer to my problem. I am doing a validation by using the BeforeUpdate event. If the value meets certain conditions, I want to Cancel the update and clear the field.
The Cancel=True part is working fine, but the .Undo is not clearing the contents of the field. It selects the contents, but does not delete it.
My question is: How can I totally clear this field?
-------------------
Rob Foye
Database Management
Regions Bank
Code:
Sub FieldName_BeforeUpdate(Cancel As Integer)
***some code***
If vVal = vbCancel Then
Me.ActiveControl.Undo
Cancel = True
End If
End Sub
The Cancel=True part is working fine, but the .Undo is not clearing the contents of the field. It selects the contents, but does not delete it.
My question is: How can I totally clear this field?
-------------------
Rob Foye
Database Management
Regions Bank