can not exit from a form

  • Thread starter Thread starter liora
  • Start date Start date
L

liora

there is a form open in addnew mode- the first field is
itm num - requre field - I check if the field is null
after exit event - if null - display message - stay on the
field. (cancel =true)
I try to close form from this point - "the user want he
getout without enter the itm num - there is a problem -
because when the form is close it check the in exit again
and I can not getout - just received the messagebox.

How can I do it better - exit the form without enter data??
 
liora said:
there is a form open in addnew mode- the first field is
itm num - requre field - I check if the field is null
after exit event - if null - display message - stay on the
field. (cancel =true)
I try to close form from this point - "the user want he
getout without enter the itm num - there is a problem -
because when the form is close it check the in exit again
and I can not getout - just received the messagebox.

How can I do it better - exit the form without enter data??

Check this in the form's BeforeUpdate event. Not in the exit event of the control.
 
Back
Top