I'm creating an array using the GetRows method from my access db like this:
Code:
SQL = "SELECT [uid], [username], [zipcode], [lat], [lng] FROM [users];"
adoConn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0; DATA SOURCE=" & Server.MapPath("users.mdb") & "; User ID=admin; Password=;"
adoRS.Open SQL,adoConn, 1, 1
Dim arrUserMiles
arrUserMiles = adoRS.GetRows
Set adoRS = Nothing
Set adoConn = Nothing
Code:
Distance(strMyLat, strMyLng, strOtherLat, strOtherLng)
Is that correct or the best way to do this? Some help would be, as always, greatly appreciated.