hc98br
ISP
- Aug 14, 2003
- 46
Hi, I'm trying to embed a web browser into a form in access, the basic priciples have worked, I've added a "Microsoft Web Browser" active x control, called it ie and used the following code to load a page:
All good, but I want to know when the page has loaded. I've checked the readystate property, starts at 1, when the page is loaded is 4 - great - but if it loop until 4, Access just locks up, doesn't even load the page!
Heres my code:
BTW, I'm using Access 2007 in Vista.
Any help would be most appreciated - thanks,
Ben.
Code:
ie.Naviagate "[URL unfurl="true"]http://www.msn.com"[/URL]
All good, but I want to know when the page has loaded. I've checked the readystate property, starts at 1, when the page is loaded is 4 - great - but if it loop until 4, Access just locks up, doesn't even load the page!
Heres my code:
Code:
ie.Naviagate "[URL unfurl="true"]http://www.msn.com"[/URL]
While ie.ReadyState <> 4: Wend
MsgBox "Loaded!"
BTW, I'm using Access 2007 in Vista.
Any help would be most appreciated - thanks,
Ben.