Change to previous message

N

netadmin

I stated in previous email about clearing a field, it is
not that I need to know about checking the fields in form
as per previous message.
 
J

John Vinson

I stated in previous email about clearing a field, it is
not that I need to know about checking the fields in form
as per previous message.

I'm not sure what you're saying here...

To check the fields use the Form's BeforeUpdate event. To allow for
the possibility that the textbox might be either NULL or an empty
string, the safe test is:

If Me!txtX & "" = "" Then
MsgBox "This textbox should be filled in"
Cancel = True

To clear textboxes selectively just set them to NULL; to clear the
entire form use

Me.Undo
 

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