[AccessD] Displaying web page in a form

Shamil Salakhetdinov shamil at smsconsulting.spb.ru
Wed Jun 11 04:52:50 CDT 2003


Bruce,

If you use MS Access2000 and up then this should work:

Dim objIE As SHDocVw.InternetExplorer

Set objIE = Me.actx_WebBrowser.Object
objIE.Navigate "http://www.microsoft.com"

If you use MS Access97 it will not work - there is a problem with IE
embedded in MS Access97's forms, which I believe is described in KB but I
didn't have KB article's code. I do know it should work for MS Access97 too
and and a funny thing is that I've it working here in one of my MS Access97
apps but I forgot the "magic steps" I passed to make it working under
Acc97:) ....
...I've just created sample MS AccessXP app, created a form with Web Browser
control and it worked OK. Then I made converion to Acc97 format and it
worked OK under AccXP but when I opened this database in Acc97 it failed to
work...

If you or somebody else will not find this KB article I mentioned above then
I will try to find it...

Shamil

P.S. Acc97 sample is here
http://www.smsconsulting.spb.ru/shamil_s/download/web97.zip (25 707 bytes) -
the weird thing is that Web Browser control can't be resized once inserted
into MS Access97 form and saved...


----- Original Message -----
From: "Bruce Bruen" <bbruen at bigpond.com>
To: <accessd at databaseadvisors.com>
Sent: Wednesday, June 11, 2003 11:55 AM
Subject: RE: [AccessD] Displaying web page in a form


> Hmm,
>
> Referenced OK
> (Registered OK)
> Inserted OK
> But...
> Me.actx_WebBrowser.navigate "some url"
> gives runtime error 438 "Object doesn't support this property or
> method"
>
> Any ideas?
>
> Tia
> Bruce
>
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK
> Sent: Wednesday, June 11, 2003 4:54 PM
> To: accessd at databaseadvisors.com
> Subject: Re: [AccessD] Displaying web page in a form
>
>
> Hi Bruce
> Just like Jim said
> Reference the shdocvw.dll in the references.
> (It will show up in the list as Microsoft Internet controls)
>
> Then from your long list of available ActiveX objects find
> one called Microsoft web browser. Insert that onto a form and call it
> say...actX_WebBrowser
>
> then code will trigger it will be... Me.actX_WebBrowser.navigate
> http://www.microsoft.com
>
> Hope this helps
>
> Darren
>
>
> ----- Original Message -----
> From: "Bruce Bruen" <bbruen at bigpond.com>
> To: <accessd at databaseadvisors.com>
> Sent: Wednesday, June 11, 2003 2:01 PM
> Subject: [AccessD] Displaying web page in a form
>
>
> > Dear List,
> >
> > Is there a way to display a web page inside a form!  I want to click
> > on a hyperlink and have the page appear within the form itself.
> >
> > Tia
> > Bruce
> >
> > _______________________________________________
> > AccessD mailing list
> > AccessD at databaseadvisors.com
> > http://databaseadvisors.com/mailman/listinfo/accessd
> > Website: http://www.databaseadvisors.com
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com



More information about the AccessD mailing list