I'm getting a enter parameter value on cooltable.distance
when Access executes ORDER BY
, which is strange since distance is a column created in cooltable
. What am I missing?
SELECT
target_postcodes.target_postcode,
population_postcodes.population_postcode,
cooltable.distance,
SQR( ( Population_postcodes.Longitude - target_postcodes.longitude)^2 + (Population_postcodes.Latitude - target_postcodes.latitude)^2 ) as distance
INTO
cooltable
FROM
Population_postcodes,
Target_postcodes
ORDER BY
cooltable.distance;