Simple Problem(???)

  • Thread starter Thread starter ACG
  • Start date Start date
A

ACG

I am using MS Access 97 and am trying to open an HTML
page (or internet / intranet page) from a module that is
running. I can get it to work by putting a hyperlink on
the form and allowing the user to 'click' on the link,
but what I really want is for the code to just start up
Internet Explorer and open the page. I have done the
same type of thing with word and excel using the Shell
command but can't get this to work and open the url I
want.

Thanks and any help would be appriciated.
 
As long as you know that people will be using internet explorer you could
use the following:

Dim oApp As Object

Set oApp = CreateObject("InternetExplorer.Application")
oApp.Application.navigate "www.hotmail.com"
oApp.Visible = True

Cheers

John Webb
 
One second, am I being too overly complicated about this - I believe the is
a followhyperlink function that goes something like:

application.FollowHyperlink "www.hotmail.com"

Not 100% on the syntax since I only vaguely remember the function, but try
that instead, as it takes into account if people are using netscape etc
 
Back
Top