473,672 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access and Google Earth

JDW
Maybe a stupid plan, but I want by double clicking on a field in a Form,
export an address to the search box of Google Earth and fly to this
address...

Who can help me with the event procedure of the address-field ?

Thanks

JD
Belgium
Europe.

Jan 23 '07 #1
12 9025
I do something similar to pull-up Yahoo map from a double click on an
address field.

Call Shell("C:\Progr am Files\Internet Explorer\iexplo re.exe
"http://maps.yahoo.com/py/maps.py?Pyt=Tma p&addr=" & Me![Address] & "&csz=" &
Me![City] & "+" & Me![State] & "+" & Me![Zip] &
"&Get%A0Map=Get +Map", vbMaximizedFocu s)

I copied the address from IE, appending information from my database. When
Yahoo changes there application, this command will need to be updated.

"JDW" <jd******@skyne t.bewrote in message
news:45******** *************** @news.skynet.be ...
Maybe a stupid plan, but I want by double clicking on a field in a Form,
export an address to the search box of Google Earth and fly to this
address...

Who can help me with the event procedure of the address-field ?

Thanks

JD
Belgium
Europe.

Jan 23 '07 #2
This post may help (if the link doesn't work search for "Sean Dorman Google
Map"). Works for Google Maps.

http://groups.google.com/group/comp....f0aadbaf5e959b
--
Darryl Kerkeslager

"JDW" <jd******@skyne t.bewrote
Maybe a stupid plan, but I want by double clicking on a field in a Form,
export an address to the search box of Google Earth and fly to this
address...

Who can help me with the event procedure of the address-field ?

Jan 24 '07 #3
MLH
Hmmm??? I get RunTime error #438 =="Object doesn't
support this property or method" when the following line
is executed:

..Navigate MyGoogleMapURL

Must be that I'm using A97, huh? Will this work with A97
with modifications?

xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxx
On Tue, 23 Jan 2007 20:14:22 -0500, "Darryl Kerkeslager"
<ke*********@co mcast.netwrote:
>http://groups.google.com/group/comp....f0aadbaf5e959b
Jan 24 '07 #4
Sorry. Not sure; I have only tested it on A2000, and no longer have A97
installed.
--
Darryl Kerkeslager

"MLH" <CR**@NorthStat e.netwrote
Hmmm??? I get RunTime error #438 =="Object doesn't
support this property or method" when the following line
is executed:

.Navigate MyGoogleMapURL

Must be that I'm using A97, huh? Will this work with A97
with modifications?

Jan 25 '07 #5
MLH
Oops. I'll catch up one day.
Jan 26 '07 #6
JDW wrote:
Maybe a stupid plan, but I want by double clicking on a field in a Form,
export an address to the search box of Google Earth and fly to this
address...

Who can help me with the event procedure of the address-field ?

Thanks

JD
Belgium
Europe.
Did the responses provide you with a solution? If not, I'll post one
for you.
Jan 27 '07 #7
MLH
I would appreciate seeing a solution I might adapt
to an A97 platform with some minor mods.

>Did the responses provide you with a solution? If not, I'll post one
for you.
Jan 28 '07 #8
MLH wrote:
I would appreciate seeing a solution I might adapt
to an A97 platform with some minor mods.
>>Did the responses provide you with a solution? If not, I'll post one
for you.
I have an unbound form (I can pass the initial data to) with the
following fields; Address, State, City, Zip and the command button
DisplayMap. I had read a post about a year+ indicating how to do it in
this newsgroup and I modified it for my needs.

Private Sub CommandDisplayM ap_Click()
On Error GoTo Err_CommandFind Address_Click

If Not IsNull(Me.City) And Not IsNull(Me.State ) Then
'Declare variables.
Dim strURL As String
Dim objBrowser As Object

'create the string to pass to google maps
strURL = CreateUrl()
strURL = "http://maps.google.com/maps?q=" & strURL &
"&iwloc=A&hl=en "

Dim obj As Object
Set obj = CreateObject("I nternetExplorer .Application")
With obj
.Navigate2 strURL
.Visible = True
End With
Set obj = Nothing
Else
MsgBox "You need to supply at least the city and state.", ,
"Missing Info"
End If

Exit_CommandDis playMap_Click:
Exit Sub

Err_CommandDisp layMap_Click:
MsgBox Err.Description
Resume Exit_CommandDis playMap_Click

End Sub

Private Function CreateUrl() As String
'generate the URL to pass to Google in browser.
Dim strURL As String
Dim strOrig As String
Dim intPos As Integer

If Not IsNull(Me.Addre ss) Then
'parse out the address elements. Ex:
'123 Somewhere St = 123+Somewhere+S t
strOrig = Me.Address
Do While True
If strOrig <"" Then
intPos = InStr(strOrig, " ")
If intPos 0 Then
strURL = strURL & Left(strOrig, intPos - 1) & "+"
strOrig = LTrim(Mid(strOr ig, intPos + 1))
Else
strURL = strURL & strOrig & "+"
Exit Do
End If
Else
Exit Do
End If
Loop
End If
strURL = strURL & Me.City & "+" & Me.State & "+"
If Not IsNull(Me.ZipCo de) Then strURL = strURL & Me.ZipCode & "+"

CreateUrl = Left(strURL, Len(strURL) - 1)

End Function
Jan 28 '07 #9
MLH
Crud! I'm getting an Automation error: System cannot find
file specified when this line runs:
Dim obj As Object <
Are there issues with References I should be paying attention to?
Jan 28 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2566
by: El Benjamino | last post by:
Hey guys, I'm wanting to learn PHP and have an idea for a new project. I'd like to put up a simple page for my family members / friends to input their address and contact info, and then a script would grab that text and convert it to KML (Google Earth's XML spec.) So what i"m looking for is any direction as to which PHP classes will read text from a field and output it to an XML-based file...(if that's the right direction...any further...
2
1749
by: Bell, Kevin | last post by:
Sorry if this is an off topic shot in the dark, but... Does anyone know a contact for anyone that works for Google Earth? I wanted to shoot 'em an email about a possible enhancement, but they're smart enough to not leave contact info ANYWHERE on their websites.
1
7287
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 to Google Map. If you don't know elisp, first take a gander at Elisp Basics. I often write travelogs on my website. If i traveled to Las Vegas, then
1
3054
by: gjsonke | last post by:
I need to get the dimensions of the Google Earth render window and I know squat about Window Handles. I've been sniffing around and I'm geting the idea that you can do lots of fun things with handles, that you can take over other apps. Is this true? Anyway, can someone help me with getting the dimensions of GE render window. The API provides: IApplicationGE::GetRenderHwnd ( OLE_HANDLE * hwnd ) Parameters: hwnd Output window...
1
3449
by: John Walsh | last post by:
Hi, I'd like to write a python script to control Google Earth, and I've read that Google Earth provides a COM api, and that Python has a COM module 'pythoncom'. Anyone know where to get pythoncom from - as a separate module, because I'm using the Python application that comes with my GPS chip, from Telit :-
2
12408
by: Sheikko | last post by:
Hi All, I want to create an application that use GE API COM and interact with GE. 1) I want to import Main windows of GE in my application like this: http://groups.google.com/group/kml-support/web/c-how-to-get-geocoords-into-your-own-app-from-mouse-clicks-in-the-ge-ui 2) I want to use direction command throgh my keyboard, directly from my application like this application:
0
352
by: service2online | last post by:
See your home on your computer through google earth SURPRIZE ! Enjoy amazing time see your earth completely Even your house Now see on your computer By controlling your self www.see2earth.blogspot.com
0
1737
by: headqters | last post by:
Hi all! I am trying to build a catalog of sorts to send to clients. I was thinking of designing, say, a large page or map of 4800 px by 2500 px . So I am picturing a visible box of 800 px by 500 px thus making 30 visible scenes more-or-less. To get to the point, I imagine this oversized page of products and a zoom / bounce much like that of Google Earth . I would want everything to zoom out and then zoom back in with ONE click of a button...
2
1116
by: senpark15 | last post by:
hi everybody, I want to access google search page results from windows application using C# and store into Sql Server database? can anybody help me?
0
8404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8931
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8828
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8608
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8680
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2819
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.