T
Tom McNally
I have a report which uses a crosstab query as the recordsource. The
crosstab query's value key is a compound concantenated "First" value that
contains 5 items that I need to split up into several grouped columns as
part of the crosstab. Because the grouped "values" that are part of the
concantenation string are not always the same length, and some are numeric
and some are strings, I figure the simplest method is CStr the values and
then pad them to the right, preferably with spaces.
I placed symbol characters as part of the concantenation of the value field
so that I can use Mid and InStr to un-concantenate the values and place
these in unbound textboxes on the report, but no matter what I try with the
crosstab query, including the suggested RPad and LPad functions on the MSDN
site the values in question always end up trimmed for some reason... It's
a messy-enough process to pluck out a value in a concantenated string with
nested Mid and InStr. Padding would be the easiest fix. My next alternative
would be to run multiple crosstabs and then union them. But that's tricky
with the way this report needs to be laid out and grouped.
Any ideas?
Am using AccessXP.
As always, thanks in advance
Tom
crosstab query's value key is a compound concantenated "First" value that
contains 5 items that I need to split up into several grouped columns as
part of the crosstab. Because the grouped "values" that are part of the
concantenation string are not always the same length, and some are numeric
and some are strings, I figure the simplest method is CStr the values and
then pad them to the right, preferably with spaces.
I placed symbol characters as part of the concantenation of the value field
so that I can use Mid and InStr to un-concantenate the values and place
these in unbound textboxes on the report, but no matter what I try with the
crosstab query, including the suggested RPad and LPad functions on the MSDN
site the values in question always end up trimmed for some reason... It's
a messy-enough process to pluck out a value in a concantenated string with
nested Mid and InStr. Padding would be the easiest fix. My next alternative
would be to run multiple crosstabs and then union them. But that's tricky
with the way this report needs to be laid out and grouped.
Any ideas?
Am using AccessXP.
As always, thanks in advance
Tom