Hello all. I have been using google map viewer bay James bell for some time now, and for some reason I am now get a runtime error6 overflow.
This line of the below code is highlited in yellow
MyError = Err.Number - vbObjectError - 513
Code:
Option Compare Database
Dim WithEvents Map As GoogleMaps
Private Sub Command1_Click()
On Error GoTo ErrCatch
Map.StartMap
Map.GeocodeAddress address, All
Exit Sub
ErrCatch:
Dim MyError As Integer
MyError = Err.Number - vbObjectError - 513
If MyError = 602 Then
MsgBox "The Address you entered could NOT be found." & vbNewLine & _
"Please enter another address", vbOKOnly, "NO ADDRESS FOUND"
End If
End Sub
Private Sub Form_Load()
Set Map = New GoogleMaps
Set Map.SetWebBrowser = Me.WebBrowser0
End Sub
Thank-you
Cheeco