473,545 Members | 2,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Combining Fields to string

17 New Member
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.
Apr 4 '07 #1
2 2540
rpeacock
17 New Member
It has been resolved on another post.

THANKS!!
Apr 4 '07 #2
RIP44
1 New Member
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
Jun 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1594
by: Alex | last post by:
Hi all, We're importing data from a propriatery database, and below is a snippet of several lines: DateTime AcctNumber PtName Notes 12-23-2003 00432234 Smith, John Patient arrived from 12-23-2003 00432234 Smith, John ER with broken leg 12-23-2003 00432234 Smith, John and was admitted to 12-23-2003 00432234 Smith, John room 204.
1
1482
by: Scott | last post by:
This is probably something really easy, Well I hope anyhow. I have three fields used for barcoding, in one table F1, F2 and F3. I want the three fields to be able to be combined to complete an EAN13 barcode. (F1=2 digits, F2 and F3 = 5 digits each. Totaling 12 digits. EAN13 assigns the 13th digit) From there, I need to then be able to...
1
1217
by: Ben Prusia | last post by:
Hello all, long time lurker, first time poster... My question is: I am trying to combine records on a 2 column database that looks like this: REFNUM ARCHITECT 00000004 Pennington, John 00000004 Spencer, David 00000009 Minneapolis Bridge
6
2209
by: DS | last post by:
I have a Combo Box (Fiield 2 is the seen one, field 1 is the bound one) and I want to combine it with another field on a report. The new field should only be visible whenever the Amount field is greater than 0. How would I accomplish this? Thanks DS
2
1311
by: cajun | last post by:
I need to combine the following FirstName Middle LastName The results I am looking for are the First Letter of the FirstName, First Letter of the Middle, and the full LastName I know that I can do a FirstName & Middle & Last = initials, but I don't know how to get just the first letter of the FirstName & Middle fields.
1
1623
by: kkjensen | last post by:
Hi there, I've got a problem that I'm sure is simple to someone with more experience. I have three tables: clients, tools and projects. Two of the fields in projects are linked to clients and tools (each project has a client and a tool). I would like one field in the "projects" table to be a combination of some of the info from all three...
7
2318
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
The default paging behavior of the gridview doesn't work well with very large sets of data which means we have to implement some sort of custom paging. The examples I have seen (4guysfromrolla, etc.) suggest using an ObjectDataSource which has built-in paging functionality that, when used in conjunction with certain SQL 2005 functionality,...
6
3438
by: tshad | last post by:
I am looking for a way to combine 2 string arrays. I am trying to get a list of files from 2 directories and combine them: string strFiles; string strFiles2; strFiles = Directory.GetFiles(Settings.ArchiveFilePath, "*.*"); strFiles2 = Directory.GetFiles(Settings.ExceptionFilePath, "*.*");
0
1069
by: Fuzz13 | last post by:
I'm working on a Address book that has 4 fields: Name, Email, Phone, Birthday. I have so far been able to get the program to add a new entry in the csv when you click add (it currently does no sort of verification). Right now I am trying to get the search function to work which I am having trouble with. If all I had to do was read the file in with...
0
7941
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7452
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6014
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5354
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5071
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3485
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1039
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.