Hi.
Having trouble getting the latitude and longitude from an address. Have looked at examples but I cannot get the following to compile:
Dim ad As Address
Dim myAdd() As Address
Dim gg As Geocoder
Dim aDD As String
gg.Initialize("Latitude")
aDD = "507 3rd Avenue, Oregon City, Oregon"
myAdd = gg.GetFromLocationName(aDD,1,Null)
ad = myAdd(1)
Msgbox(ad.Latitude,"")
It does not like the Null parameter for the tag, even though I see that in two other posts. It says:
Parsing code. 0.16
Compiling code. Error
Error compiling program.
Error description: Cannot assign void value.
Occurred on line: 386
myAdd = gg.GetFromLocationName(aDD,1,Null)
Word: )
I If I leave out the Null it says "too few parameters".
Anybody know what I am doing wrong?
Having trouble getting the latitude and longitude from an address. Have looked at examples but I cannot get the following to compile:
Dim ad As Address
Dim myAdd() As Address
Dim gg As Geocoder
Dim aDD As String
gg.Initialize("Latitude")
aDD = "507 3rd Avenue, Oregon City, Oregon"
myAdd = gg.GetFromLocationName(aDD,1,Null)
ad = myAdd(1)
Msgbox(ad.Latitude,"")
It does not like the Null parameter for the tag, even though I see that in two other posts. It says:
Parsing code. 0.16
Compiling code. Error
Error compiling program.
Error description: Cannot assign void value.
Occurred on line: 386
myAdd = gg.GetFromLocationName(aDD,1,Null)
Word: )
I If I leave out the Null it says "too few parameters".
Anybody know what I am doing wrong?