I, too am unsure what you are trying to accomplish. But I played with your code and got this far:
Code:
'For each customer, this will calculate "custLatTimesPiOver180", then
' for each record in the table "Carrier", do more calcs.
Public Sub Calc_It()
' 3.141592653589793238462643383279502884197169399375105
Const pi = 3.14159265358979 ' to 20 places
Dim db As DAO.Database
Dim rsCustomer As DAO.Recordset
Dim rsCarrier As DAO.Recordset
Dim piOver180 As Double
Set db = CurrentDb
Set rsCustomer = db.OpenRecordset("Customer")
Set rsCarrier = db.OpenRecordset("Carrier")
piOver180 = pi / 180
Do While Not rsCustomer.EOF
custLat = rsCustomer.Fields("Latitude")
custLon = rsCustomer.Fields("Longitude")
custLatTimesPiOver180 = custLat * piOver180
MsgBox custLatTimesPiOver180
TempClosestDistance = 99000000
Do While Not rsCarrier.EOF
'More codes here to calculate
'do something
rsCarrier.MoveNext
Loop
rsCustomer.MoveNext
Loop
rsCustomer.Close
rsCarrier.Close
'You didn't open it, so don't close it!!
' db.Close
Set rsCustomer = Nothing
Set rsCarrier = Nothing
Set db = Nothing
End Sub