By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,033 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,033 IT Pros & Developers. It's quick & easy.

Command Button opens website using text from textbox

P: n/a
Hi there,

I would like to know how to create an event procedure for a command button that uses the text of a textbox to go to a specified website.

Example: User types "google" in a textbox, hits command button, and a web browser opens http://www.google.com.



Any help would be appreciated. Thanks!
Oct 29 '10 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Sorry, I'm a noob. This question is for MS Access 2007.

Please let me know if more information or detail is required
Oct 29 '10 #2

NeoPa
Expert Mod 15k+
P: 31,662
Tell us if this (How to Programmatically Create a Hyperlink on a Form) helps.
Oct 29 '10 #3

mshmyob
Expert 100+
P: 903
Put this is the ON Click event of your button

Expand|Select|Wrap|Line Numbers
  1. Dim strURL As String
  2. strURL = Me.txtWeb.Text ' the string in your text box is picked up here
  3. Application.FollowHyperlink strURL
  4.  
cheers
Oct 29 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.