why not do the similar thing as before
loop through the results
when the airportcode changes that means you are in a new group
if in same group, loop through the services and check the appropriate box
i'm not really following the part you are having trouble with, unles you are meaning you want rows to columns? meaning one single row per airport with columns of services