Is there a way to trim data in a select statement. I have a query that fills a listbox, but noticed some of the data in the tables have leading spaces in data in fields.
Me.L5.RowSource = "SELECT DISTINCT (TXCLIPS.NName) AS Name,TXMASTERS.SeriesName AS Programme" _
& " FROM TXMASTERS INNER JOIN TXCLIPS ON TXMASTERS.ID1=TXCLIPS.ID1 " _
& "WHERE TXCLIPS.NName Like '*" & Replace(Me.LNAME5.Caption, "'", "''") & "*' " _
& "ORDER BY TXCLIPS.NName"
Me.L5.Requery
I am trying to trim the TXCLIPS.NName before it gets in a list. Thanks
Me.L5.RowSource = "SELECT DISTINCT (TXCLIPS.NName) AS Name,TXMASTERS.SeriesName AS Programme" _
& " FROM TXMASTERS INNER JOIN TXCLIPS ON TXMASTERS.ID1=TXCLIPS.ID1 " _
& "WHERE TXCLIPS.NName Like '*" & Replace(Me.LNAME5.Caption, "'", "''") & "*' " _
& "ORDER BY TXCLIPS.NName"
Me.L5.Requery
I am trying to trim the TXCLIPS.NName before it gets in a list. Thanks