Find instance of IE running from Access form. -
08-05-2003
, 04:40 PM
Hello,
Is it possible to find an instance of IE (that's been launched outside
of Access) from an access form??
What I've read leads me to believe that yes it's possible and I've
used the code below to try it.
Public Declare Function SetActiveWindow Lib "user32" (ByVal hwnd As
Any) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA"
(ByVal _
lpClassName As Any, ByVal lpWindowName As Any) As Long
Private Sub Command0_Click()
Dim hWnd1 As Long
hWnd1 = FindWindow("", "<window name>*")
SetActiveWindow (hWnd1)
End Sub
However this just returns a 0 for a Window Handle, which I believe
translates to Access' object view window.
I've also tried launching IE from within the form and still have no
luck.
All I want is to find the instance of IE then make that the top
window.
Any help is appreciated.
Thanks,
--FB |