goatboy
11-07-2003, 02:02 PM
could someone point my in the right direction here...
I'm trying to display the contents of a CD database (Access) in the following format:
CD Title1
track1
track2
track3
CD Title2
track2.1
track2.2
track3.3
..and so on,
the tables are:
CD: cdNo, title
Tracks: cdNo, track
ok, now I know what I've got aint doing it properly but ....
SQL statement: SELECT Distinct cds.title, tracks.tracks FROM cds INNER JOIN tracks ON cds.cdNo = tracks.cdNo
then I print out the title and use a while not EOF to display the rest of the records.
this gives me the (obviously) wrong format of:
CD Title 1
track1
track2
track3
track2.1
track2.2
track2.3
I cant get the logic of how to display the track listings under the relevent cd titles.
can anyone help?
thanks.
I'm trying to display the contents of a CD database (Access) in the following format:
CD Title1
track1
track2
track3
CD Title2
track2.1
track2.2
track3.3
..and so on,
the tables are:
CD: cdNo, title
Tracks: cdNo, track
ok, now I know what I've got aint doing it properly but ....
SQL statement: SELECT Distinct cds.title, tracks.tracks FROM cds INNER JOIN tracks ON cds.cdNo = tracks.cdNo
then I print out the title and use a while not EOF to display the rest of the records.
this gives me the (obviously) wrong format of:
CD Title 1
track1
track2
track3
track2.1
track2.2
track2.3
I cant get the logic of how to display the track listings under the relevent cd titles.
can anyone help?
thanks.