Because VB is a newer language to me, I didn't know if this was possible. Here's my scenario:
I have a "Main" form open that looks up a location by name, if the name matches more than one location I open a new form with the following code.
"Multiple Matches" allows me to select the location from a list. The value is then put on my "Main" form. This value is needed for other functions to run. So even though "Multiple Matches" gains focus, "Main" still runs it's code in the background and I get errors before I can even select the correct location.
Is there a way to pause and restart my code based on whether Multiple Matches is open. I was considering doing a while loop, but I thought it might eat up too much memory.
Please let me know my best option (if there is one).
Thank you all I know this was a lot to read and understand,
Modest
I have a "Main" form open that looks up a location by name, if the name matches more than one location I open a new form with the following code.
Code:
Case Is > 1
MsgBox "Found more than one match for your location."
DoCmd.OpenForm "Multiple Matches", acNormal
"Multiple Matches" allows me to select the location from a list. The value is then put on my "Main" form. This value is needed for other functions to run. So even though "Multiple Matches" gains focus, "Main" still runs it's code in the background and I get errors before I can even select the correct location.
Is there a way to pause and restart my code based on whether Multiple Matches is open. I was considering doing a while loop, but I thought it might eat up too much memory.
Please let me know my best option (if there is one).
Thank you all I know this was a lot to read and understand,
Modest