Hello all!

I have the following problem. Is it possible to display a text using ASP
which is a pivot table. I mean,

GROUP 200401 200402 200403 200404
GR_1 1 2 3 5
GR_2 4 1 5 3
GR_3 9 7 8 7

How to achieve such display while source data looks like this???:
GROUP WEEK VALUE
GR 1 200401 1
GR 1 200402 1
GR 1 200402 1
GR 1 200403 3
GR 1 200404 5
GR 2 200401 4
GR 2 200401 1
....
VALUE in the pivot table is a sum of VALUE.

Kind regards
Thank you in advance for your help
Marcin

Re: ASP - pivot table by Bob

Bob
Wed Dec 01 13:10:03 CST 2004

Kamyk wrote:
> Hello all!
>
> I have the following problem. Is it possible to display a text using
> ASP which is a pivot table. I mean,
>
> GROUP 200401 200402 200403 200404
> GR_1 1 2 3 5
> GR_2 4 1 5 3
> GR_3 9 7 8 7
>
> How to achieve such display while source data looks like this???:
> GROUP WEEK VALUE
> GR 1 200401 1
> GR 1 200402 1
> GR 1 200402 1
> GR 1 200403 3
> GR 1 200404 5
> GR 2 200401 4
> GR 2 200401 1
> ....
> VALUE in the pivot table is a sum of VALUE.
>

Loop through the data and tally up the totals in an array. Are you
retrieving your data from a database via a recordset? If so, what database?
If Jet, you can create a crosstab query.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



Re: ASP - pivot table by Kamyk

Kamyk
Wed Dec 01 15:00:47 CST 2004

> Loop through the data and tally up the totals in an array. Are you
> retrieving your data from a database via a recordset? If so, what
database?
> If Jet, you can create a crosstab query.
>
> Bob Barrows
>

I get data from recordset. I mean even if I have a crosstab query, data is
downloaded to variables with not-crosstab way:

For the following Access crosstab query:

GROUP 200401 200402 200403 200404
GR_1 1 2 3 5
GR_2 4 1 5 3
GR_3 9 7 8 7

the data in ASP are not saved in a variable 200401, or 200402,
because this variable is VALUE

I hope you know what I mean.
Sorry for my English, because I am Polish person:)
Marcin