learning...@gmail.com explained on 3/2/2017 :
OK, this time I actually took the time to create a Table and a query to
test the sql. I think I have all of the possibilities covered at this
point. Here ia the Sql:
SELECT [Field A], [Field B], [Field C], [Field D],
nz([FIELD A],"") & IIF(Len(nz([FIELD A],"")) AND Len(nz([FIELD B],"") &
nz([FIELD C],"") & NZ([FIELD D],""))>0, ",","") &
nz([FIELD B],"") & IIF(Len(nz([FIELD B],"")) AND Len(nz([FIELD C],"") &
NZ([FIELD D],""))>0,",","") &
nz([FIELD C],"") & IIF(Len(nz([FIELD C],"")) AND Len(nz([FIELD
D],""))>0,",","") &
nz([FIELD D],"") AS AllTypes
FROM Table7;
Here is the Result:
Field A Field B Field C Field D AllTypes
AA BB CC DD AA,BB,CC,DD
A2 B2 D2 A2,B2,D2
B3 C3 D3 B3,C3,D3
A4 A4
B5 C5 B5,C5
D6 D6
Rdub