In my subform "sfrmorders" , i have a field "Qty" with the default value set to 0. This setting is ment to eliminate the change of a ISNULL or a ISEMPTY. Is that a good technic to obtain that goal?
When entering an orderitem , this control must be assigned a value greater then 0. The possibility exists that the user leaves that control without filling in a value! Yes we have to deal with such a kind of possibilties! So in such a case no "before-update" nor "after_update" takes place.
Therefore i have code in the "lost focus" event of this control to check for a zerovalue. If this is the case, the user get a message and a
"Docmd.Cancelevent" takes place. - Is that neccessary here?-. After that I want the control getting back the focus, so that the user is obliged to input a value greater then zero.
A "Docmd.Gotocontrol me!Qty " don't lead to a succesfull obtaining this goal.
What to do to achieve that goal?
When entering an orderitem , this control must be assigned a value greater then 0. The possibility exists that the user leaves that control without filling in a value! Yes we have to deal with such a kind of possibilties! So in such a case no "before-update" nor "after_update" takes place.
Therefore i have code in the "lost focus" event of this control to check for a zerovalue. If this is the case, the user get a message and a
"Docmd.Cancelevent" takes place. - Is that neccessary here?-. After that I want the control getting back the focus, so that the user is obliged to input a value greater then zero.
A "Docmd.Gotocontrol me!Qty " don't lead to a succesfull obtaining this goal.
What to do to achieve that goal?