Hello there,
I’d like to combine the text values from multiple fields from one table in one new field, for each record, and null values are involved.
There are really a dozen fields to combine, but to make discussion easier, let’s say I have 6 fields to combine:
Expr1
Expr2
Expr3
Expr4
Expr5
Expr6
Each field represents a different office:
Expr1
Manager)
Expr2: (Clerk)
Expr3: (Finance)
Expr4: (Personnel)
Expr5: (Planning)
Expr6: (Building)
Expr7: (Combined field values)
And each record has a value (office name) in one or more of the fields (field divisions represented by "/"). For example:
Record1: Manager / Clerk / / Personnel / /
Record2: / Clerk / / / /
Record 3: / / / / / / Planning / Building
Here is how I would like the values to look in Expr7, with a comma between office names only when there is another office or more:
Record1: Manager, Clerk, Personnel
Record2: Clerk
Record3: Planning, Building
Here’s the expression I have in Expr7:
Expr7: [Expr1] & (NZ([Expr2]+",") & (Nz([Expr3]+", ") & (Nz([Expr4]+", ") & (Nz([Expr5]+", ") & ([Expr6])))))
And, you can see the results in the attached image. Too many commas!!!!
I’d appreciate any and all suggestions, because I’m at my wits end.
Thanks ever so much!
I’d like to combine the text values from multiple fields from one table in one new field, for each record, and null values are involved.
There are really a dozen fields to combine, but to make discussion easier, let’s say I have 6 fields to combine:
Expr1
Expr2
Expr3
Expr4
Expr5
Expr6
Each field represents a different office:
Expr1
Expr2: (Clerk)
Expr3: (Finance)
Expr4: (Personnel)
Expr5: (Planning)
Expr6: (Building)
Expr7: (Combined field values)
And each record has a value (office name) in one or more of the fields (field divisions represented by "/"). For example:
Record1: Manager / Clerk / / Personnel / /
Record2: / Clerk / / / /
Record 3: / / / / / / Planning / Building
Here is how I would like the values to look in Expr7, with a comma between office names only when there is another office or more:
Record1: Manager, Clerk, Personnel
Record2: Clerk
Record3: Planning, Building
Here’s the expression I have in Expr7:
Expr7: [Expr1] & (NZ([Expr2]+",") & (Nz([Expr3]+", ") & (Nz([Expr4]+", ") & (Nz([Expr5]+", ") & ([Expr6])))))
And, you can see the results in the attached image. Too many commas!!!!
I’d appreciate any and all suggestions, because I’m at my wits end.
Thanks ever so much!