Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining three fields into one (Follow-up)

Status
Not open for further replies.
Jul 1, 2004
28
US
Ok i have successfully merged three fields into one using:

SELECT BOM.[ProductID], PROD.ProductDescription + " , " + BOM.Field5 + " , " + BOM.Field6 + " , " + BOM.Field7 as [Description]

but some of the records in the BOM table do not have values for Field6 or Field7. When the query runs it wipes out all of the info in the description field for those records without a value for field 6 or 7. Any ideas on how to preserve the info for records without a value in those fields.

Thanks!!!
 
Use the & operator for concatenation instead of the + one.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top