Open a website in access

darkhat01

Registered User.
Local time
Today, 10:18
Joined
Oct 13, 2006
Messages
12
How do i open a website with VAB code in Access?

I have played with a few ideas and noting is working.

Thanks,

Darkhat01
 
Hello:

One way would be to put your URL in the HyperLink Address property of a command button. Another way would be to store the URL's in a table.

Regards
Mark
 
Nearly all objects (labels, textboxes, etc.) have a "Hyperlink Address" property. Put the full URL in that property and clicking on that object will launch your default browser and go to the URL specified.
 
Last edited:
Code:
Public ie as InternetExplorer

Private Sub cmdButton_Click()
   Set ie = CreateObject("InternetExplorer.Application")
   ie.Navigate "http://visualbasic.about.com"
End Sub

Using ie.Navigate2 in this code will open the website in a new IE window. If you are trying to open the website on one of your forms, let me know I'll post how to do that.
 

Users who are viewing this thread

Back
Top Bottom