I'm sure this should be a fairly easy one:
I open a new outlook contacts form from access (creating a new instance of outlook). I've got no problems if outlook isn't already running, but if it is then when I close the contacts form my outlook window gets the focus.
How do I get the focus to return to my access form?
I set the variable for the outlook application to nothing after closing the form and I've tried using SetFocus, but although the code runs without an error, it doesn't do anything!
I open a new outlook contacts form from access (creating a new instance of outlook). I've got no problems if outlook isn't already running, but if it is then when I close the contacts form my outlook window gets the focus.
How do I get the focus to return to my access form?
I set the variable for the outlook application to nothing after closing the form and I've tried using SetFocus, but although the code runs without an error, it doesn't do anything!