T
Tom
I got some help from John Vinson in another thread. I was wondering if I
could get some addtional information.
The query below requires some modification to ensure that the comma of the
last value is removed.
Does anyone know how to modify it. Please see examples below for more
background.
Thanks so much in advance,
Tom
***********
Expr: IIf(([Field1]+", ") & ([Field2]+", ") & ([Field3]+", ") & ([Field4]+",
") Is Not Null,Left(([Field1]+", ") & ([Field2]+", ") & ([Field3]+", ") &
([Field4]+", "),Len(([Field1]+", ") & ([Field2]+", ") & ([Field3]+", ") &
([Field4]+", ")-2)))
Below is the query how it pulls the records (I abbreviated "Field" with
"F").
F1 F2 F3 F4
Record #1: 1 2 3
Record #2: 21 22
Record #3: 31 34
Record #4: 100
The result in the expression field are now:
Expr
1, 2, 3,
21, 22,
31, 34
100,
As shown in the example above, the 3rd record is the only record that is
displayed properly (no comma at the end) since it is the only record which
has a value in the Field4. The 1st, 2nd, and 3rd record are followed by a
comma for the last character.
Do you know of a way to drop that "last comma" as well... please keep in
mind that maybe there won't be a value for the 2nd or 3rd record either.
could get some addtional information.
The query below requires some modification to ensure that the comma of the
last value is removed.
Does anyone know how to modify it. Please see examples below for more
background.
Thanks so much in advance,
Tom
***********
Expr: IIf(([Field1]+", ") & ([Field2]+", ") & ([Field3]+", ") & ([Field4]+",
") Is Not Null,Left(([Field1]+", ") & ([Field2]+", ") & ([Field3]+", ") &
([Field4]+", "),Len(([Field1]+", ") & ([Field2]+", ") & ([Field3]+", ") &
([Field4]+", ")-2)))
Below is the query how it pulls the records (I abbreviated "Field" with
"F").
F1 F2 F3 F4
Record #1: 1 2 3
Record #2: 21 22
Record #3: 31 34
Record #4: 100
The result in the expression field are now:
Expr
1, 2, 3,
21, 22,
31, 34
100,
As shown in the example above, the 3rd record is the only record that is
displayed properly (no comma at the end) since it is the only record which
has a value in the Field4. The 1st, 2nd, and 3rd record are followed by a
comma for the last character.
Do you know of a way to drop that "last comma" as well... please keep in
mind that maybe there won't be a value for the 2nd or 3rd record either.