dbTalk Databases Forums  

Find instance of IE running from Access form.

comp.databases.ms-access comp.databases.ms-access


Discuss Find instance of IE running from Access form. in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
FrankBooth
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.