T
Tom
I have a query that - when executed - gives me the following results:
FIELD1 FIELD2 FIELD3
Rec1 X
Rec2
Rec3 Y
Rec4 X Y
The expression below produces the following output:
EXPR: (IIf([FIELD2] Is Null,"","X" + IIf([FIELD2] Is Null,"","Y")))
FIELD1 FIELD2 FIELD3 EXPR
Rec1 X X
Rec2
Rec3 Y
Rec4 X Y XY
QUESTION:
My question is... why is record 3/field3 ("Y") not picked up?
Additional feedback:
Also (later on), I need to write the query in such way that I concatenate
all "existing" values which are separated by a comma. However, the last
value of the
expression string should not be "suffixed" by a comma.
The EXPR should produce some like this:
FIELD1 FIELD2 FIELD3 FIELD 4 EXPR
Miami Richmond Miami, Richmond
San Diego New York San Diego, New York
LA LA
Thanks,
Tom
FIELD1 FIELD2 FIELD3
Rec1 X
Rec2
Rec3 Y
Rec4 X Y
The expression below produces the following output:
EXPR: (IIf([FIELD2] Is Null,"","X" + IIf([FIELD2] Is Null,"","Y")))
FIELD1 FIELD2 FIELD3 EXPR
Rec1 X X
Rec2
Rec3 Y
Rec4 X Y XY
QUESTION:
My question is... why is record 3/field3 ("Y") not picked up?
Additional feedback:
Also (later on), I need to write the query in such way that I concatenate
all "existing" values which are separated by a comma. However, the last
value of the
expression string should not be "suffixed" by a comma.
The EXPR should produce some like this:
FIELD1 FIELD2 FIELD3 FIELD 4 EXPR
Miami Richmond Miami, Richmond
San Diego New York San Diego, New York
LA LA
Thanks,
Tom