I’ve got a form of two fields… for one of those fields, “allowzerolength” is set to “no” …
Here’s the situation: Open up the form with valid data already in it… select the field with the len()>1 restriction. Hit “DEL” to clear out the data in the field. This is fine, since we’re still in the control’s focus… Ahhh, but now — click the form close (“X”) button. POOF!
I can’t seem to find any code that can correctly capture this event and cancel the form’s close() routine (OR undo changes to the record before closing) without Access popping up some crazy error about how it can’t save the record but do I want to close the form anyway. I’d much rather capture this completely and handle it without popping up error messages.
But how?
thanks!
..dane