Hi
I have a table that has location coordinates in 2 different fields - X and Y.
I have built a function called Distance which accepts 2 location's data (4 variables) and returns the distance between them.
I would like to design a query that will be called from a form that shows all the records in which the distance between them and the form entered location is smaller than 5.
The problem is i don't know how to set a criteria using 2 fields.
HELP