I am doing a report and I think I have to use a crosstab.
Quote
_________________|Type1|Type2|Type3|Type4|........
SECTION1__________UN_____AP____AP____UN__.....
SECTION2__________AS_____UN____UN____UN__.....
.
.
.
On the left side should be the list of road sections and in the columns there should be the assessment codes listed by type.
I understand that I can't use strings in summary fields so I made a computed column that would convert the codes to numbers like this:
Quote
AP -> 2
...
Then in the expression builder for the summary field I put in this script:
Quote
{UN}
else if (dataSetRow["asses_number"] == "2")
{AS}
else if (dataSetRow["asses_number"] == "3")
{AP}
else if (dataSetRow["asses_number"] == "4")
{DE}
else if (dataSetRow["asses_number"] == "5")
{HL}
else if (dataSetRow["asses_number"] == "0")
{0};
to convert it back to strings.
This doesn't work :/
Anyone got any ideas?
Thanks a lot!






MultiQuote










