I have a SQL statement that combines text fields from two different tables. Each field has a label. If the field is null, I don't want the label. I can't seem to make it work. Any help is appreciated.
strSQL = "SELECT 'Comments: ' + ISNULL(matter.mdesc2, '') + ' ' + " & _
"ISNULL(matter.mdesc3, '') + Char(13) + char(10) + 'Client Comments: ' + ISNULL(client.clname2, '') " & _
"AS Comments FROM matter INNER JOIN client ON matter.mclient = client.clnum " & _
"Where mmatter = " & "'" & Matter & "'" & _
"order by mmatter
strSQL = "SELECT 'Comments: ' + ISNULL(matter.mdesc2, '') + ' ' + " & _
"ISNULL(matter.mdesc3, '') + Char(13) + char(10) + 'Client Comments: ' + ISNULL(client.clname2, '') " & _
"AS Comments FROM matter INNER JOIN client ON matter.mclient = client.clnum " & _
"Where mmatter = " & "'" & Matter & "'" & _
"order by mmatter