>What code?
I forgot to add code to turn the flag off...
IF nKey = 27 and Thisform.OK2ResetBtn
with thisform
.FirstBtn.Enabled=.T.
.Btn_Inventory.visible = .F.
.Btn_UpFedlog.visible = .F.
.Btn_Issued.visible = .F.
.Btn_Receipt.visible = .F.
.OK2ResetBtn = .F. &&Turn off flag
endwith
nodefault
ENDIF