I understand what you are saying, Naomi. It seems that way. This is already a separate button; I thought it was because the button was a sub-classed button that that might be why it didn't work, so I just got a plain commandbutton and placed it there with all the necessary code.
Again, the code fires, if there has been any change to the data, but if there is no change to the data and I click on the CANCEL button, the code does not ever fire. I set the ENABLED property to .T. upon clicking on my EDIT button. Notice below code:
WITH ThisForm
.lEditing = .T.
.lblModeStatus.Caption = "EDIT MODE"
.Enable_Page1()
.CancelButton.Enabled = .T.
ENDWITH
>>Yes, I did, but the code never stopped inside of the Cancel.click event even though I put a SET STEP ON command there.
>>
>>>Did you try debugging this code?
>Try to create a separate button on the form and move the code from the old button's Click there.
>It looks like your Cancel button may have When method returning .f. or be disabled and therefore not firing the click method.