>Hi,
>
>I am facing a problem, I have a form on which I calculated the Total amount of the a grid column. After that, there is a discount field and that Amount Received(EPOS SYSTEM). Please note that I have given the commands of Drawer Opening, Pole Display and Printing in Lost Focus event of Amount Received field.
>
>Suppose if by mistake a user comes on Amount Received field without giving any discount (if applicable) he cannot. Kindly suggest what to do in that case.
>
>Saif
You can go back to another object, with the .SetFocus() method.
However, I thínk it is better to do all validation at once, before saving the data. Let's assume you have a "Save" button. Before doing the TableUpdate(), you check some rules, and if some rule is violated, you simply inform the user and don't save.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)