I have some code that checks whether the required fields in a form are completed or not when an "Exit" button is clicked. If a required field is left blank then a messagebox appears and the focus is then set at the field missing information. I got the code from one of the forum topics and it works like a charm.
The problem occurs when a user moves onto a new record but doesn't enter anything in any of the fields and then clicks the Exit button. This sets off a loop that prevents the form from being closed without the user filling in the required fields.
Is there any way I can check if all the fields in the form are empty?
The problem occurs when a user moves onto a new record but doesn't enter anything in any of the fields and then clicks the Exit button. This sets off a loop that prevents the form from being closed without the user filling in the required fields.
Is there any way I can check if all the fields in the form are empty?