I have an Add Client form that after you type in a name it runs a VB query for a match in the Old Clients table, if it matches, it opens the Old Clients form so i can have the option to "rehire", if no match it just continues on in the Add Client Form. Problem is that when i get a match, the form stays open in the background. I cant code a close acForm because of the query running. If i put a close elsewhere, but the form is not open, it will err obviously.
How can i code like "IF AddClient Form is open, Close it. Else Don't"
How can i code like "IF AddClient Form is open, Close it. Else Don't"