I have a problem with a bound textbox. The field is required and don’t allow Null in the database.
This gives me a problem when I want to clear the textbox. For example if I entered something and deleted it then the validation rule kicks in and don’t allow me to leave the field. I can only leave the field if I hit ESC so reset it to its original (unaltered) state.
I tried setting the field to Nothing and DefaultValue in an _After-/_BeforeUpdate() event but that doesn’t work.
Thank you for your help.
The way I ended up solving this, thanks to the comments, was using an unbound textbox and then copying the validation rule from the database in the form
On Loadprocedure.Note I added “Or Is Null” to the rule else I would be stuck in the textbox if I deleted my input.
The validation rule in the database is: >=1 And <=10
Hope this helps someone 🙂