N
Nancy
Hi,
I have a query where I want to concatenate a field called CAS to a field
called Product Description if the CAS field is not empty. I also need to
trim both fields and add brackets around [CAS] if it is not empty. The trim
and concatenation work fine if the CAS field is not empty. If it is empty,
the brackets are still concatenated to the Product Description field but with
no data between ([]). Please see my function code below. I will appreciate
any help you can provide.
Product Description Concat: IIf(([tbl_Quote Line Item]![Product
Description])="",Trim$([tbl_Quote Line Item]![Product
Description]),Trim$([tbl_Quote Line Item]![Product Description]) & " " & "["
& Trim$([tbl_Quote Line Item]![CAS#]) & "]")
Thanks,
I have a query where I want to concatenate a field called CAS to a field
called Product Description if the CAS field is not empty. I also need to
trim both fields and add brackets around [CAS] if it is not empty. The trim
and concatenation work fine if the CAS field is not empty. If it is empty,
the brackets are still concatenated to the Product Description field but with
no data between ([]). Please see my function code below. I will appreciate
any help you can provide.
Product Description Concat: IIf(([tbl_Quote Line Item]![Product
Description])="",Trim$([tbl_Quote Line Item]![Product
Description]),Trim$([tbl_Quote Line Item]![Product Description]) & " " & "["
& Trim$([tbl_Quote Line Item]![CAS#]) & "]")
Thanks,