If you have a problem in your code, I suggest that you fix it. If for instance your program starts an endless loop, there is no other way out than starting the task manager. But then again, a properly debugged program will never end up in an endless loop. It's all up to you, really. And that's why the debugger should be your best friend.
>Yes, I found it, I didn't open the table and was totaling the quantity and amount. Basically I want to avoid to go to the task manager to terminate the program. Is there any function/routine through which if this problem occurs I can quit normally.
>
>Saif