B
Barnaby Burman
Hi,
I have a simple table in Access with four cols, as an output from my
GIS:
BUILDING_ID , ROAD_ID , ROUTE_ID , DISTANCE
The table shows the distance of each building from each road, and many
roads make up a route. I just want a query to:
1. Group by Building_ID where the Routes are the same
2. Find the Minimum Distance
3. Get the Road_ID from which the Minimum Distance refers to.
I've written some lovely VBA code for this, but it takes a very long
time, especially when there are 100k's of records. Is there a way in
the query builder this can be done more quickly?
If anyone has any ideas, I'd be very grateful,
Regards,
Barnaby Burman
I have a simple table in Access with four cols, as an output from my
GIS:
BUILDING_ID , ROAD_ID , ROUTE_ID , DISTANCE
The table shows the distance of each building from each road, and many
roads make up a route. I just want a query to:
1. Group by Building_ID where the Routes are the same
2. Find the Minimum Distance
3. Get the Road_ID from which the Minimum Distance refers to.
I've written some lovely VBA code for this, but it takes a very long
time, especially when there are 100k's of records. Is there a way in
the query builder this can be done more quickly?
If anyone has any ideas, I'd be very grateful,
Regards,
Barnaby Burman