Connecting Tech Pros Worldwide Forums | Help | Site Map

Combining Fields to string

Newbie
 
Join Date: Apr 2007
Posts: 17
#1: Apr 4 '07
I have a function that takes a field with values separated by commas within the field and splits them to multiple rows.

Example:
Field - Interior
Value - abc,def,efg,ghi

Output:
ID Item
1 abc
2 def
3 efg
etc

This is working great thanks to help that I received on here.

Now I am combining multiple fields to a string.
Example:
Field1: abc, def
Field2: ghi, jkl

using

SELECT (Field1 + ',' + Field2) From .....

This is working great unless there is a field that has a NULL value. Then I get a NULL result.

Is there an easy way to only put the fields with value into my string and leave out the NULL fields? Some have one NULL field, some have multiple. I just need to get the string to work and get only the fields that have values.

Any suggestions are always appreciated.

Newbie
 
Join Date: Apr 2007
Posts: 17
#2: Apr 4 '07

re: Combining Fields to string


It has been resolved on another post.

THANKS!!
Newbie
 
Join Date: Jun 2007
Posts: 1
#3: Jun 27 '07

re: Combining Fields to string


Quote:

Originally Posted by rpeacock

It has been resolved on another post.

THANKS!!

I am having the same problem - can you tell me what other post solved the issue?

Thanks in advance

RIP
Reply