I'm working on a database in MS Access 2007 for a flight simulator, and I need to convert rows to columns, It's difficult to explain, so let me show what my problem is.
The data I have to start with looks like this:
HTML Code:
<pre>
The data I have to start with looks like this:
Waypoint Lat Lon previous/next minimim-alt airwayName
00MKK 22.528056 -156.170961 BITTA 12 R464
00MKK 22.528056 -156.170961 CKH99 12 R464
03SML 25.61 30.635278 57SML 195 L321
03SML 25.61 30.635278 AST 85 W8
03SML 25.61 30.635278 KHG 85 W8
03SML 25.61 30.635278 KUNAK 195 L321
I need the data to look like this:
Waypoint Lat Lon AirwayName Previous Next AirwayName Previous Next
03SML 25.61 30.635278 L321 57SML KUNAK W8 AST KHG
00MKK 22.52805 -156.1709 R464 BITTA CKH99 blank blank blank
</pre>
For every airway the same waypoint has, I need a new column with the previous and next fields next to it. Each waypoint may have several airways associated with it(usually not more than 10). The order in which the previous and next entries appear is not especially important. From what I've gathered, if this is even possible, this kind of operation can be done using multiple crosstab queries. Any help is appreciated. Thank you.