vijay.vizzu
Member
Hi..all
I am working on a project, in which i create a button for New & Cancel option. I did on form activate, the button caption will be "New". When that new button will click, the new caption will change to cancel.
But now i want, whenever this button again click that means for cancel purpose, all fields should be reset to their normal position. I can't able to achieve this. So please help me to resolve
I am working on a project, in which i create a button for New & Cancel option. I did on form activate, the button caption will be "New". When that new button will click, the new caption will change to cancel.
But now i want, whenever this button again click that means for cancel purpose, all fields should be reset to their normal position. I can't able to achieve this. So please help me to resolve
HTML:
Private Sub cmd_NewCancel_Click()
cmd_Close.Enabled = False
cmd_NewCancel.Enabled = True
cmd_NewCancel.Caption = "Cancel"
cmd_Save.Enabled = True
cmd_Preview.Enabled = False
txt_VendCd.Enabled = True
txt_VendCd.SetFocus
opt_SJP.Enabled = True
opt_SJP.Value = True
opt_CHE.Enabled = True
lbl_Dt.Caption = Format(Now(), "dd-mmm-yyyy")
cbo_Model.Enabled = True
cbo_Req_No.Enabled = True
cbo_PIC.Enabled = True
End Sub