i think you didn't understand what i'm trying to do.
On a field property i have a vba function that checks if that field already exists in another table. If it does, then i want to clear all the fields of the current record.
I think it would have been nice to get the whole picture in the first place instead of having to guess all the time or try to prise more info from you.
Just how exactly are we supposed to know about this checking procedure you have magically mentioned now?
If you had search the Access VBA help files for the Undo method then you would have found this...
The following example shows how you can use the Undo method within a control's Change event procedure to force a field named LastName to reset to its original value, if it changed.
Code:
Private Sub LastName_Change()
Me!LastName.Undo
End Sub
The next example uses the Undo method to reset all changes to a form before the form is updated.
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.Undo
End Sub
I think it would have been nice to get the whole picture in the first place instead of having to guess all the time or try to prise more info from you.
Just how exactly are we supposed to know about this checking procedure you have magically mentioned now?