Hi
I have a table containing ID numbers and location data (xxxxxx/yyyyyy)
I have a search form in which you can insert a location (in the format above) and a distance and a query returns all the records that are in stated distance or less.
Problem is my query criteria is too complex.
I created a function that gets the 2 locations and calculates the distance between them.
So i set the location criteria to be:
Distance([table].[location],[Forms]![searchform]![location])<[Forms]![searchform]![distance]
But Access wouldn't let me run the query saying the criteria is too complex and suggesting I use parameters.
I would rather not use parameters. Is there an easy solution I'm missing here?
Tnx a lot in advance![]()