Having put in a junction table to avoid duplication of data has become a nightmare. I am trying to recover a way to produce reports. The code below works but only because old data is still in records
SELECT TXMASTERS.Barcode, AthleteNames.Athlete, TXCLIPS.Comments, TXMASTERS.Competition, TXCLIPS.NName AS Name, TXMASTERS.EpisodeTitle, TXCLIPS.Start, TXCLIPS.Start AS TimecodeIn, TXCLIPS.Duration, TXCLIPS.StarRating
FROM TXMASTERS INNER JOIN (TXCLIPS INNER JOIN (AthleteNames INNER JOIN JUNCTION ON AthleteNames.AthleteID = JUNCTION.AthleteID) ON TXCLIPS.ID2 = JUNCTION.ID2) ON TXMASTERS.ID1 = TXCLIPS.ID1
WHERE (((AthleteNames.Athlete)=[forms]![AthleteCompetition].[Form].[LNAME4].[caption]) AND ((TXMASTERS.Competition)=[forms]![AthleteCompetition].[Form].[LNAME6].[caption]));
The field TXCLIPS.NName was a field which held more than 1 name seperated by commas and a host of other wrong data. However it was displayed in column one of a columnar report. However the names are all now in a junctioed table called AthleteNames. I am trying to find how to replace the orignal NName column with a truncated line of relevant AthleteNames.Athlete, eg Name1;Name2;Name3 etc.
Can anyone suggest a way of doing it?? Many thanks
SELECT TXMASTERS.Barcode, AthleteNames.Athlete, TXCLIPS.Comments, TXMASTERS.Competition, TXCLIPS.NName AS Name, TXMASTERS.EpisodeTitle, TXCLIPS.Start, TXCLIPS.Start AS TimecodeIn, TXCLIPS.Duration, TXCLIPS.StarRating
FROM TXMASTERS INNER JOIN (TXCLIPS INNER JOIN (AthleteNames INNER JOIN JUNCTION ON AthleteNames.AthleteID = JUNCTION.AthleteID) ON TXCLIPS.ID2 = JUNCTION.ID2) ON TXMASTERS.ID1 = TXCLIPS.ID1
WHERE (((AthleteNames.Athlete)=[forms]![AthleteCompetition].[Form].[LNAME4].[caption]) AND ((TXMASTERS.Competition)=[forms]![AthleteCompetition].[Form].[LNAME6].[caption]));
The field TXCLIPS.NName was a field which held more than 1 name seperated by commas and a host of other wrong data. However it was displayed in column one of a columnar report. However the names are all now in a junctioed table called AthleteNames. I am trying to find how to replace the orignal NName column with a truncated line of relevant AthleteNames.Athlete, eg Name1;Name2;Name3 etc.
Can anyone suggest a way of doing it?? Many thanks