The code below fills a list with records.
Me.L88.RowSource = "SELECT TXCLIPS.NName AS Name, TXCLIPS.Shot, TXCLIPS.StarRating AS Rating,TXCLIPS.Comments, TXCLIPS.ID2" _
& " FROM TXMASTERS INNER JOIN TXCLIPS ON TXMASTERS.ID1=TXCLIPS.ID1 " _
& " WHERE TXCLIPS.Comments & '' Like '*" & Me!LNAME14.Caption & "*'" _
& " AND TXMASTERS.SportOrSports & '' Like '*" & Me!LNAME15.Caption & "*'" _
& "ORDER BY TXCLIPS.NName"
If I leave out the AND line, ie SportOrSports, the result in the list is in a totally different order, although with the line in or out produces the same number of records. I have checked the table and all reoords have the field filled in. I am concerned why. Any ideas, thanks
Me.L88.RowSource = "SELECT TXCLIPS.NName AS Name, TXCLIPS.Shot, TXCLIPS.StarRating AS Rating,TXCLIPS.Comments, TXCLIPS.ID2" _
& " FROM TXMASTERS INNER JOIN TXCLIPS ON TXMASTERS.ID1=TXCLIPS.ID1 " _
& " WHERE TXCLIPS.Comments & '' Like '*" & Me!LNAME14.Caption & "*'" _
& " AND TXMASTERS.SportOrSports & '' Like '*" & Me!LNAME15.Caption & "*'" _
& "ORDER BY TXCLIPS.NName"
If I leave out the AND line, ie SportOrSports, the result in the list is in a totally different order, although with the line in or out produces the same number of records. I have checked the table and all reoords have the field filled in. I am concerned why. Any ideas, thanks