I am totally lost trying to understand why the following code works perfectly in an MDB file but not at all in an MDE file. The code is intended to minimize the popup. Originally I tried to build it into the load event of the form and later the timer event of the form but it won't work in either when the mdb is launched by another mdb so I decided to put a button on the popup that says minimize. I put the following declaration at the top of the form module:
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
I then put the following code in the button On Click event:
Dim Minimise As Long
Minimise = ShowWindow(hWndAccessApp, 2)
If I launch the mdb the popup opens. When I press the button the form minimizes. When I turn the mdb into an mde and launch it, the button does nothing.