Combining Fields to string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rpeacock
    New Member
    • Apr 2007
    • 17

    Combining Fields to string

    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.
  • rpeacock
    New Member
    • Apr 2007
    • 17

    #2
    It has been resolved on another post.

    THANKS!!

    Comment

    • RIP44
      New Member
      • Jun 2007
      • 1

      #3
      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

      Comment

      Working...