I hope I can explain this...
I Built a manual crosstab from a SQL query. The report summarizes 1,000,000 + records for the last six months like this:
July Aug Sept Oct Nov Dec
Doc # 1
Visits50 35 29 47 24 100
Time 350 420 261 1128 144 700
AveTime 7 12 9 24 6 7
Doc # 2 # Appointments
Time
Average Time
And so on..
Everything is working fine except the column headings for the month. The SQL stored procuedure returns a column assignment (1, 2, 3...) as well as a month string for each data record. Any time you run it, it gets only the last 6 complete months and assigns the columns.
I have detail bands a, b, and c for the data suppressed and group footers for the totals visible. I have a formula that can return the correct month heading but it only works in a detail band. [says she while pulling out hair]
The formula is:
whileprintingrecords
Select case {Stored Procedure;1.Col}
Case "2"
formula = {StoredProcedure1.Month}
Case else
formula = " "
End Select
If you can point me in the right direction, I would be very grateful!
Thanks!
The world is full of good people.
I Built a manual crosstab from a SQL query. The report summarizes 1,000,000 + records for the last six months like this:
July Aug Sept Oct Nov Dec
Doc # 1
Visits50 35 29 47 24 100
Time 350 420 261 1128 144 700
AveTime 7 12 9 24 6 7
Doc # 2 # Appointments
Time
Average Time
And so on..
Everything is working fine except the column headings for the month. The SQL stored procuedure returns a column assignment (1, 2, 3...) as well as a month string for each data record. Any time you run it, it gets only the last 6 complete months and assigns the columns.
I have detail bands a, b, and c for the data suppressed and group footers for the totals visible. I have a formula that can return the correct month heading but it only works in a detail band. [says she while pulling out hair]
The formula is:
whileprintingrecords
Select case {Stored Procedure;1.Col}
Case "2"
formula = {StoredProcedure1.Month}
Case else
formula = " "
End Select
If you can point me in the right direction, I would be very grateful!
Thanks!
The world is full of good people.