UncleBonehead
Technical User
1) How can I prevent the following from creating the extra line returns if the [PartComments] field is null?
2) How can I prevent the following from creating the extra line returns at the end if there is only one record?
Component Info: Concatenate("SELECT [Issue#] + ') ' & [PartName] & '; P/N: ' + [PartNbr] & '; TOW: ' + [PartTOW] & IIf(IsNull([PartUnsRemTY]),'', Chr(13) & Chr(10) & 'UNS RMVLS:' & Chr(13) & Chr(10) & " & Year([ExDate]) & " & ': ' & [PartUnsRemTY] & Chr(13) & Chr(10) & " & Format(DateAdd("yyyy",-1,[ExDate]),"yyyy") & " & ': ' & [PartUnsRemTY-1] & Chr(13) & Chr(10) & " & Format(DateAdd("yyyy",-2,[ExDate]),"yyyy") & " & ': ' & [PartUnsRemTY-2])& Chr(13) & Chr(10) & Chr(13) & Chr(10) & UCase([PartComments]) FROM tblCompAnal WHERE ExHistID = '" & [ExHistID] & "'",Chr(13) & Chr(10) & Chr(13) & Chr(10))
Thank you!!
2) How can I prevent the following from creating the extra line returns at the end if there is only one record?
Component Info: Concatenate("SELECT [Issue#] + ') ' & [PartName] & '; P/N: ' + [PartNbr] & '; TOW: ' + [PartTOW] & IIf(IsNull([PartUnsRemTY]),'', Chr(13) & Chr(10) & 'UNS RMVLS:' & Chr(13) & Chr(10) & " & Year([ExDate]) & " & ': ' & [PartUnsRemTY] & Chr(13) & Chr(10) & " & Format(DateAdd("yyyy",-1,[ExDate]),"yyyy") & " & ': ' & [PartUnsRemTY-1] & Chr(13) & Chr(10) & " & Format(DateAdd("yyyy",-2,[ExDate]),"yyyy") & " & ': ' & [PartUnsRemTY-2])& Chr(13) & Chr(10) & Chr(13) & Chr(10) & UCase([PartComments]) FROM tblCompAnal WHERE ExHistID = '" & [ExHistID] & "'",Chr(13) & Chr(10) & Chr(13) & Chr(10))
Thank you!!