ReMeE said:
Hello Dirk,
How does this 'Application.hWndAccessApp' work?
HWndAccessApp is a property of the Access Application object. It
returns the window handle of the Access application. If you're up to
some API programming -- Windows API, that is, not the Access API -- you
can pass this to the appropriate Windows API function to bring the
Access application window to the top. In the context of your original
question, I don't know whether you'll be able to do this from Access
after sending your e-mails via Outlook or not -- you may have to get
Outlook to do it, as Merle Nicholson described.
Merle Nicholson's cautions apply.
If you want to try doing it from your Access application's code, you
could paste the following definition of the BringWindowToTop API
function into the declarations section of a standard module:
'----- start of API function declaration -----
Declare Function BringWindowToTop Lib "user32" _
(ByVal hwnd As Long) As Long
'----- end of API function declaration -----
Then you could call it from your code like this:
BringWindowToTop Application.hWndAccessApp
As I said, that may or may not accomplish what you want, but you could
try it.