473,378 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Calling IE from Access with a Google search string...

Hi all;
I have an interesting challenge for you all... I have a Contact Details form in my DB that contains all the usual stuff. But inevitably sometimes all the information we have for a client is their first name and last name and often the URL of their host institution. So I thought I'd do a bit of automation. I've placed a command button labelled Find Me! on the Contact Details and this calls Internet Explorer. (is there a more elegant way of doing this than "C:\program files\internet explorer\iexplore.exe"?)

Anyway, as some of you may know you can hop straight to a URL by using "iexplore.exe www.msn.com" or suchlike. I want to insert a URL after "iexplore.exe" that reads:

http://www.google.co.uk/search?hl=en&as_qdr=all&q=
+%22[FIRSTNAME]+[LATNAME]%22+site
%3A[INSTITUTIONURL]&btnG=Search&meta=

This is equivalent to typing

"John Smith" site:www.msn.com

into Google, and will only return the exact phrase John Smith within www.msn.com and all its sub-pages. [FIRSTNAME], [LASTMANE] and [INSTITUTIONURL] are all fields that'll be visible on forms when the user clicks "Find Me!", so they don't need to be rooted out first.

So here's the question: Does anyone know how to use the code builder to find these three variables, plug them into the URL and launch Explorer? It would also be good if there was a way to return an error message and stop the code if [INSTITUTIONURL] = ZLS or NULL.

Thanks!
Jun 14 '07 #1
2 1569
Well, I tried to use RunApp in a macro using:

c:\program files\internet explorer\iexplore.exe http://www.google.co.uk/search?hl=en&as_qdr=all&q=
+%22[frmContactDetails!firstname]+[frmContactDetails!lastname]
%22+site%3A[frmInstDetails!UniURL]&btnG=Search&meta=

didn't work obviously but one lives in hope...
Jun 14 '07 #2
NeoPa
32,556 Expert Mod 16PB
In VBA code you can use the Shell() function.
I'm afraid you'll need to find the syntax of the invocation elsewhere (I suggest the Windows Forum)
Jul 4 '07 #3

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

Similar topics

8
by: ding feng | last post by:
I am a beginner. So this question could be very stupid. Would anyone help me to solve this problem? A formatted txt file is read. Then i need to look into a vector who is a member of a class to...
18
by: Jarrod Morrison | last post by:
Hi All I was wondering if there is a way to call a stored procedure from inside another stored procedure. So for example my first procedure will call a second stored procedure which when...
9
by: Mark | last post by:
I want to put out a Excel or Access database spreadsheet on a web page. Can I do this and will it let me update the spreadsheet or will it be a static web page? If not then should I put it out...
9
by: Jack-of-all-traits | last post by:
I have certain words, or groups of words (4 or less) input in my fields in Access 2002 xp pro atmosphere. The data is essentially in the tables., so what I want to do is get access with the...
3
by: Sean | last post by:
Have you ever wanted to add the great features inherent in Google Maps? Here is how you do it. ============== == STEP ONE == ============== Create a new MS Access form called frmGoogleMap....
6
by: shapper | last post by:
Hello, If you make a search in Google for "CNN" you will get the result as follows: CNN.com - Breaking News, US, World, Weather, Entertainment & Video ... CNN.com delivers the latest...
1
by: xahlee | last post by:
Elisp Tutorial: Make Google Earth Xah Lee, 2006-12 This page shows a example of writing a emacs lisp function that creates a Google Earth file, and creates a link to the file, as well a link...
4
by: jerm.hannley | last post by:
I am creating a webpage for my office. The start page is a search engine that searches a company database. it consists of a text box and a button called search. I was wondering if i could add...
0
by: rbunn83815 | last post by:
Hello Everyone! Before we start I'm a javascipt newbie as well as trying to get javascipt to work with the C# code behind page in ASP.NET. C# alone I can do fairly well with however. I'll...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.