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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass field contents to google.com

Status
Not open for further replies.

johngordon

Technical User
Jun 29, 2002
112
US
I have an address field that I want to be able to pass data to a google.com web page.

Can this be done? If so, can some help me out with some code. I'm lost!

Thanks,

John

 
I don't think you can pass data like that. You could try and fiddle it by doing a search, copying the URL. I did this using "TEXTOFSEARCHHERE" as my search string and got this URL:

"
Now create some simple code to open the URL using a predefined string is shown below:

Code
----
Dim strInput As String

strInput = "Application.FollowHyperlink strInput, , True

--- End of code ---

If you want the user to put a specific search query in then have a textbox (called txtInput as an example) and substitue this into the code like so:

Code
----
Dim strInput As String

strInput = " + me!txtInput.value + "&btnG=Google+Search"
Application.FollowHyperlink strInput, , True

--- End of code ---

This should do the trick
 
Thanks a million! I took your advise and fiddled with it a little and it worked fine!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top