AndrewMozley
Programmer
Form A has a textbox into which a supplier’s code is entered. The validation routine checks that it is a valid code and refreshes other interesting controls on the form.
The user may however click on another form (Form B) while txtSupp has focus. In that case FormA.txtSupp.valid() checks for that and allows focus to pass to that other form - without generating an error message for an invalid supplier.
When however the user clicks back on Form A – perhaps on a different control, I would like to continue the validation of the supplier - just as if there had been no intervening click on Form B; in that case clicking on the different control on Form would have invoked txtSupp.valid(). How can I organise that?
Thank you.
The user may however click on another form (Form B) while txtSupp has focus. In that case FormA.txtSupp.valid() checks for that and allows focus to pass to that other form - without generating an error message for an invalid supplier.
When however the user clicks back on Form A – perhaps on a different control, I would like to continue the validation of the supplier - just as if there had been no intervening click on Form B; in that case clicking on the different control on Form would have invoked txtSupp.valid(). How can I organise that?
Thank you.