ChristineMD
Board Regular
- Joined
- Jul 29, 2008
- Messages
- 53
I have a table that has five columns for data, however, not all five columns always HAVE data.
itemNo= 1
Fabric1=48% Cotton
Fabric2=48% Linen
Fabric3=4% Unicorn Fur
Fabric4
Fabric5
So there's an example of a record that has a number of the fabric fields utilized.
I want to combine them all into one field, but separate each data element with something, ideally a comma, but a dash would do. AND I want to EXCLUDE fields that have no data.
So I spent a long time fiddling with iif, but realized I'd never get any more than one result.
There will always be a fabric1
The rest are all maybes
I can easily concatenate all the fields with whatever separator I'd like, but I get a bunch of empty/extra separators at the end, when all fields are not utilized.
Any ideas how to exclude the blank fields? I'm doing this w/ QBE by the way...
Thanks in advance
itemNo= 1
Fabric1=48% Cotton
Fabric2=48% Linen
Fabric3=4% Unicorn Fur
Fabric4
Fabric5
So there's an example of a record that has a number of the fabric fields utilized.
I want to combine them all into one field, but separate each data element with something, ideally a comma, but a dash would do. AND I want to EXCLUDE fields that have no data.
So I spent a long time fiddling with iif, but realized I'd never get any more than one result.
There will always be a fabric1
The rest are all maybes
I can easily concatenate all the fields with whatever separator I'd like, but I get a bunch of empty/extra separators at the end, when all fields are not utilized.
Any ideas how to exclude the blank fields? I'm doing this w/ QBE by the way...
Thanks in advance