>See my post to Cetin. I managed to use a command button to close a form with invalid data in a text box, with the validation code in LostFocus. I'll retry my test.
You mean in a grid? But you can beat a Valid stop in a grid, too. Both can be beaten by a toolbar, also...
>
>As I said to Cetin, this is largely a matter of style. I don't personally agree with using LostFocus for the reason I stated in my other post. I certainly wouldn't quibble too hard with anyone who, however.
Agreed. I just prefer to keep all the code in one place, and the Lostfocus has fewer problems than the valid (setfocus!)...but it's mainly just preference...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.