> >if Users.Password == PADR(ALLTRIM(thisform.txtPassword.value),LEN("Users.Password")) > else > endif >RELEASE thisform >DO FORM C:\HPRC\MANAGEMENT.SCX > >>
* Form Init SET STEP ONThat will cause the debugger to open when you run your form. Now once the debugger is open in the watch window put USED("Users") and press enter. Now double click in the watch window margin beside the USED("Usesr") line to set a break point whenever the value of that expression changes. Now you can right click on the command window and type RESUME to resume the form running. The debugger will pop up and the code will be suspended whenever the USED() changes its value. That is when the file openned it willbreak and again when the file is closed. You need tofind out when the file is being openned (if it is being openned at all) and also when the file gets closed, in case it is being openned but then it gets closed again before your validation code runs.