> I your case, I would suggest that you use the Form’s Before Update Event.
>
> If the user leave a blank in the textbox or input gibberish, how or what do
> your code handle the input? Or use the textbox BeforeUpdate event? Or Why not
> a Combo Box? Give us the code.
>
> Gazza wrote:
> >I am having a few form coding problems and i hope someone can help.
> >
> >Basically i have the form which is used to add new customers to a table.
> >The first text box (accountcode) works how its supposed to in that i enter
> >an accountcode and it goes to the next box if the code doesnt already
> >exist,but it will not let you goto the next box until a code is entered.
> >
> >The postcode textbox however is giving me a serious headache. If the user
> >presses the enter key whilst in the text box but has not entered anything
> >then a message box should display saying that a postcode must be entered,
> >this doesnt work atall and just adds the record to the table and goes to a
> >new record.
> >
> >And finally the very last text box is used to enter the record into the
> >table, delete the record entry or return to the beggining of the record to
> >change some details. The problem im having with this is that the record is
> >also added to the table if any other character is entered into the text box
> >or if it is just entered through. I just need a text box to pop up sying that
> >either Y or N only to be entered and return to the text box without adding
> >the record.
> >
> >Thanks in advance and sorry for the long and awkward post.
>
> --
> Please Rate the posting if helps you
>
> Message posted via AccessMonster.com
>
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200812/1>
>