R
redFred
Be kind: I am self-taught, merely an amateur at this.
I have a control (unbound) wherein the user enters a date. This date is
then used elsewhere (bound controls), destination per criteria.
User enters a date, or partial date and wishes to close the form, NOT
hitting the Enter key but leaving "trash" in suspense.
How can I test this unbound control for "trash" when the user clicks the
Close button, without ever having hit the enter key while focus is in the
unbound control, which would make a valid entry? Leaving "trash" and closing
the form actually updates elsewhere as if the user accepted the date.
The close button is clicked as follows:
1. Routinely: a date entered into this unbound control and work is done
with date.
2. User may open the form, and immediately close it.
3. User may partial enter date and change mind, with "trash" in unbound
control.
It may be a case of cerebral flatulence, but I would appreciate some advice.
Thanks,
I have a control (unbound) wherein the user enters a date. This date is
then used elsewhere (bound controls), destination per criteria.
User enters a date, or partial date and wishes to close the form, NOT
hitting the Enter key but leaving "trash" in suspense.
How can I test this unbound control for "trash" when the user clicks the
Close button, without ever having hit the enter key while focus is in the
unbound control, which would make a valid entry? Leaving "trash" and closing
the form actually updates elsewhere as if the user accepted the date.
The close button is clicked as follows:
1. Routinely: a date entered into this unbound control and work is done
with date.
2. User may open the form, and immediately close it.
3. User may partial enter date and change mind, with "trash" in unbound
control.
It may be a case of cerebral flatulence, but I would appreciate some advice.
Thanks,