Hyperlink an IP Address - Access 97

I have an IP Address field on my form.  I would like a command button that will open a brower with http to the IP Address...

For example, http://10.19.192.168  <---- would be the line in my web browser.

Any idea's?
perplexed71Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

flavoCommented:
something like this (will open in a new window)

private sub cmdMyButtonName_click()
        application.followHyperlink "http://10.19.192.168 ", , true
End Sub
0
flavoCommented:
ohh.. a field

private sub cmdMyButtonName_click()
        application.followHyperlink Me.MyHyperLinkField, , true
End Sub
0
perplexed71Author Commented:
I get this error,

Run-time Error '-2146697211 (800c005)':
Methond 'FollowHyperlink' of object'_Application' Failed
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

flavoCommented:
works fine here (Access 2003 though)

But i use 97 at work and im 99.9999999% sure Application.hyperlink is there
0
NGPSoft1Commented:
I tried it with Access 97, got the same results as you. Interestingly, it appears to work fine if you pass it a FQDN, as opposed to an IP address.

Try this:

Public Sub testit()
Dim i As Integer
Dim progstr As String
Dim url As String
url = "http://10.19.192.168"
progstr = "C:\Program Files\Internet Explorer\iexplore.exe"
i = Shell(progstr & " " & url)
Debug.Print i
End Sub

Hope that helps.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
perplexed71Author Commented:
Here's what I have:

Private Sub HTTP_Click()
Application.FollowHyperlink Me.IPAddress, , True
End Sub

The error is now:

Run-time Error '432'
File name or class name not found during Automation operation.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.