I have a main form that has controls on it. It has a custom Search button that when clicked opens another form to search specific record. After closing the search form, I would like to perform some validations and tasks before moving to the record that was picked from the search form.
I tried putting this code in the main form gotfocus event but it did not work (may be because it has controls). Also I tried the activate event with no luck.
Where can I put such validation code before moving to the picked record?
Main form is open all the time.