CancelUpdate

mredmond

Registered User.
Local time
Today, 05:41
Joined
Oct 1, 2003
Messages
32
I have a form that displays a list of records. The user cannot edit these records but can select one and click the EDIT button that I provide. This will take him to another window that allows edits to be made to the selected record. This new window has a CONTINUE button and a CANCEL button. The CANCEL button invokes a procedure that calls the CancelUpdate method.

What I want to happen, and what I understand is supposed to happen, is that the CancelUpdate clears the buffers in which the changed data is stored prior to calling the Update method. So when the windows reverts back to the list, I would expect to see the record unchanged.

But I don't. The change is applied anyway. Am I missing something in my understanding of CancelUpdate?

Thanks in advance. You guys have never let me down before.
 
not sure about your cancelupdate which you are using, but i usually use the following:

Cancel = True

the above statement always worked fine for me!
 
you haven't posted your code but
Me.Undo will suffice
 

Users who are viewing this thread

Back
Top Bottom