D
David W. Fenton
It was still a pain to have to be sure you clicked at the very
beginning of the text box,
Well, I think using the mouse to navigate is at odds with the data
entry process. Did you consider using the OnEnter event (perhaps
combined with the OnMouseUp event) to set the selection point to the
beginning of the field? Of course, that could mean that if you tried
to click in, say, the year portion of the date masks you'd end up
having to click a second time, but this is one of those cases where
it seems to me that keyboard navigation is vastly superior, both for
navigating between fields and within a field. Sounds like a training
issue to me (and I've spent years trying to train people to use both
mouse and keyboard selectively, each for what is most appropriate).
but it did enforce four digits for the year; perhaps we could
have done it in a more user-friendly way with VBA validation code,
but that would have been more work (and the client wasn't wiling
to fund that extra work, either).
Validating dates in code manurally is actually a lot more
complicated than you might think (for a recent app, I had to write a
dialog to parse a free text field to format the date parts as
accurately as possible; had I known beforehand how nearly impossible
it was, I would not have suggested trying to implement it).