I have a MS Access 2010 query
SELECT
AirportName,
EarthDistance(51.1480555555556, 0.190277777777778, Lat, Long, "K") AS Distance
FROM Airports;
it runs correctly, returning all the airports in the table and their distance from London Gatwick.
I can add a where clause such as
WHERE AirportName = "LaGuardia Airport"
and the query runs correctly. However, if I add a where clause such as
WHERE Distance < 5000
I get a dialog box asking me to enter the value of parameter Distance. How can I include this column in a where clause?