I have a form with fields that are data-bound to an Access DB table. I have come across a problem in giving the user freedom of movement within the form when one of the fields is required. Specifically when adding a new record. If the user tries to leave focus of a required field while it is empty the program freezes, not allowing any other action.
While I could add code to notify the user they need to fill in the field immediately, I'd rather let the user tab past and come back to it later. What I'd like to do is only have the program validate the fields (and inform the user of what they missed) when they try to change records. Is there a way to do this without relaxing the database requirement (it's an ID field) but still keep it bound?
As a work around, I've had two text boxes. One the user sees, isn't bound, and is copied to the bound field after validation (or reads from the bound field if the record changes). The other is bound but hidden to the user. It works, but it's bulky. I was
wondering if there's an easier way. Help is appreciated.