|
|
Question : 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?
|
Answer : Hyperlink an IP Address - Access 97
|
|
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.
|
|
|
|
|