**** form1.text2.valid **** SELE CUSTOMER if the escape is pressed than return endif IF EMPT(ACCODE) MESSAGEBOX("Somthing is required",0,"||| alert |||") return 0 endif