can not exit from a form

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??
 
R

Rick Brandt

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top