All,
I have an Access database with a table of 442 airports, my company's maintenance centers (MC's) and distances (in miles). This output table was created by measuring the as-the-crow-flies distance from all 442 airports to each of the eleven MC's. The distance of each airport is calculated to each MC, so, I am left with a table of 4862 records.
I would like to write code to go through the table, select out all of the records for each Iata code and then select the minimum distance to store in a resultant table. I would like to do all of this on the fly until the last record is read. My output will have 442 airports with the distance to its closest MC.
I have written two queries to help push myself along. The first, choose any Iata code, as well as, the MC and distance fields. 2. Select the minimum distance value of all 11 records. I think this is a good start, but how do I automate this.
Thanks,
Todd McNeil
ARINC
Annapolis, MD
I have an Access database with a table of 442 airports, my company's maintenance centers (MC's) and distances (in miles). This output table was created by measuring the as-the-crow-flies distance from all 442 airports to each of the eleven MC's. The distance of each airport is calculated to each MC, so, I am left with a table of 4862 records.
I would like to write code to go through the table, select out all of the records for each Iata code and then select the minimum distance to store in a resultant table. I would like to do all of this on the fly until the last record is read. My output will have 442 airports with the distance to its closest MC.
I have written two queries to help push myself along. The first, choose any Iata code, as well as, the MC and distance fields. 2. Select the minimum distance value of all 11 records. I think this is a good start, but how do I automate this.
Thanks,
Todd McNeil
ARINC
Annapolis, MD