Never Hide
Registered User.
- Local time
- Today, 21:39
- Joined
- Dec 22, 2011
- Messages
- 96
I have a Table City with this setup
City : (ID,Name,Lat,Lon)
I also have a form with a combobox with all the fields from that table and 2 textboxes which I fill with the Lat and Lon info of the selected city.
What I'm tying to do is have a 3d textbox(named google_mapstxtbox) where I'll get a link to google maps using the Lat and Lon I get for each city. I know that you can create a link for google maps like this:
http://maps.google.com/maps?q="LAT","LON"
Now what I tried to do 1st is see if I can get the "LAT" info in the google_mapstxtbox so I tried this
But when I run the form nothing happened in google_mapstxtbox. I've also tried the same thing in the Change event of LATtxtbox and got the same unsuccesfull results.Also tried using the .Text , .Value properties but nothing changed.
Then I tried getting the LAT ifo directly from the combobox using in the AfterUpdate event
And yet again I got no results.
What I had in mind for the look of the google_mapstxtbox was something like this
And of course use the FollowHyperLink method after I get the text pat soted out so you can click on it and go to Google Maps
Maybe I'm taking a wrong approach or I'm missing something in the syntax, please help me any way you can
Thank you in advance
City : (ID,Name,Lat,Lon)
I also have a form with a combobox with all the fields from that table and 2 textboxes which I fill with the Lat and Lon info of the selected city.
What I'm tying to do is have a 3d textbox(named google_mapstxtbox) where I'll get a link to google maps using the Lat and Lon I get for each city. I know that you can create a link for google maps like this:
http://maps.google.com/maps?q="LAT","LON"
Now what I tried to do 1st is see if I can get the "LAT" info in the google_mapstxtbox so I tried this
Code:
Private Sub LATtxtbox_AfterUpdate()
Me.google_maps = Me.LATtxtbox
Then I tried getting the LAT ifo directly from the combobox using in the AfterUpdate event
Code:
Me.google_maps = CITYcmbbox.Column(4) 'the column with LAT info
What I had in mind for the look of the google_mapstxtbox was something like this
Code:
Me.google_mapstxtbox = "http://maps.google.com/maps?q=" & Me.LATtxtbox & "," & Me.LONtxtbox

Maybe I'm taking a wrong approach or I'm missing something in the syntax, please help me any way you can
Thank you in advance