I have a form/subform set up that sets initial focus to a text field but I need a text field to:
1 Contain a value and not be left blank
2 Contain a valid value
before continuing to enter data anywhere else on the form.
Ive tried the AfterUpdate event but this only works if a value is entered and doesnt trap the Null situation. Ive tried the LostFocus event but I can only issue a warning that the field was left blank and cant reset the focus back to the original field from this event.
Is the only way to handle this to code each fields Gotfocus event to check the above and then reset the focus back to the text field if is doesnt satisfy the above conditions? Thanks
Woody
1 Contain a value and not be left blank
2 Contain a valid value
before continuing to enter data anywhere else on the form.
Ive tried the AfterUpdate event but this only works if a value is entered and doesnt trap the Null situation. Ive tried the LostFocus event but I can only issue a warning that the field was left blank and cant reset the focus back to the original field from this event.
Is the only way to handle this to code each fields Gotfocus event to check the above and then reset the focus back to the text field if is doesnt satisfy the above conditions? Thanks
Woody