Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open website

Status
Not open for further replies.

mcginty

IS-IT--Management
Mar 14, 2001
35
0
0
IE
Hi All,

I have a text box where a web address is typed in. How can I use a button to open that site in a browser?

Rgds,
Ted
 
You can put this code in the on_click event of the button.

Dim address As String
address = Me!<textboxnamehere>
Application.FollowHyperlink address, , True
Maq [americanflag]
<insert witty signature here>
 
Thanks Maq,

This is exactly what I want to do but I'm getting an error message : &quot;Run-time error 432. File name or class name not found during Automation operation&quot;

Any ideas?

Rgds,
Ed
 
Hmmm, I don't know. What version of Access are you using?
This code works fine for me in Access 97, but it's possible (ok, probable) that they have changed the language for Access 2000 and up.

Look up the Application keyword in Access help and see what they list. If they got rid of it, perhaps it will tell you what they replaced it with. Maq [americanflag]
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top