B
beliado
Guest
I'm trying to run a purchased app via a form load (or any event, for that matter) in Access. Instructions were to register the dll and then create a class module with the code shown below. I've done that, and I get "Invalid Outside Procedure" when the form attempts to load. Any help is greatly appreciated.
Dim calc As DistanceAssistant
Set calc = New DistanceAssistant
'It may be necessary to use this form:
'Dim calc : Set calc = CreateObject("ZIPCodeDownload.DistanceAssistant")
Dim distance As Double
distance = calc.Distance(dblLat1,dblLong1,dblLat2,dblLong2)
Dim calc As DistanceAssistant
Set calc = New DistanceAssistant
'It may be necessary to use this form:
'Dim calc : Set calc = CreateObject("ZIPCodeDownload.DistanceAssistant")
Dim distance As Double
distance = calc.Distance(dblLat1,dblLong1,dblLat2,dblLong2)