dlugirapfr
Registered User.
- Local time
- Today, 21:54
- Joined
- Nov 22, 2012
- Messages
- 68
Thank you.
My report looks like this. Every picture I have picture and url to high quality picture.
I want to add also link to GPS coordinates below it - just to open maps google with coordinates.
All my report is based on query where I download temporary pictures from url etc. And it is reason why I want to do it by public function. To add Cordinates1 url, coordinates2 url, below every picture and direct link to them.
I try to do something like this:
This code of course is wrong. But if it works I will put in query field coordinates1 url: openGPS([table1].[fileLocalization]) and I will do it for 2,3... etc. And if picture will be empty I will do in query iif([table1].[fileLocalization10] is null; "";openGPS([table1].[fileLocalization10])
Maybe it is not logical, but I don't know how to do it differently.
Many thank's for help.
Karol
My report looks like this. Every picture I have picture and url to high quality picture.
I want to add also link to GPS coordinates below it - just to open maps google with coordinates.
All my report is based on query where I download temporary pictures from url etc. And it is reason why I want to do it by public function. To add Cordinates1 url, coordinates2 url, below every picture and direct link to them.
I try to do something like this:
Code:
Public Function openGPS(filePath1 As String)
On Error GoTo ExifError
With GPSExifReader.OpenFile(filePath1)
If .GPSLatitudeDecimal > 0 Then
Me.Value = "http://maps.google.com/maps?ll=" & Replace(.GPSLatitudeDecimal, ",", ".") & "," & Replace(.GPSLongitudeDecimal, ",", ".") & "&spn=0.03,0.03&t=m&q=" & Replace(.GPSLatitudeDecimal, ",", ".") & "," & Replace(.GPSLongitudeDecimal, ",", ".")
Else
Me.Value = "No GPS"
End If
End With
Exit Function
ExifError:
MsgBox "error"
End Function
Maybe it is not logical, but I don't know how to do it differently.
Many thank's for help.
Karol