>* None of this code executes, unless there has been a change in the data. >* .cancelButton.Click() event. >WITH ThisForm > .lEditing = .F. > .Revert() > ThisForm.cpageframe1.cpage1.newButton.Enabled = .T. > .saveButton.Enabled = .F. > .IsDeleted() > .Disable_Page1() > .lblModeStatus.Caption = "VIEW MODE" && Tells user what mode he is in. > .Show_Specs() > .CountRecs() >ENDWITH >WITH ThisForm.cpageframe1 > IF .activepage=1 > .cPage1.grdCerts.SetFocus() > ELSE > .cPage2.ws1TextBox.SetFocus() > ENDIF >ENDWITH >This.Enabled = .F. >Did you try debugging this code?