Need Help with Crosstab Query

A

Accesshelp

Hello all,

I have the following 3 fields:

Student ID (Row Heading), School Year End (Column Heading) and Data (Value)

I create a crosstab query as indicated above. The problem that I have is
the Data field is alphanumeric, and I can not do Sum or Group By on the
field. So I choose First (Min or Max), and the query runs, but the data for
different School Year End do not group when the Student ID is the same.

How can I make it to group on the same line if the Student ID is the same?

Thanks.
 
D

Duane Hookom

You should be getting only one row per StudentID. Check the SQL view for
additional fields in the GROUP BY clause. If you can't correct this, reply
back with the SQL view.
 
A

Accesshelp

Duane,

Thank you very much for your response. You are right! The data group into
one row per StudentID.

Since my data field is alphanumeric, I can not do Sum or Group By for the
Total. The options that I have are First, Last, Min or Max. I am just
wondering whichever the option (First, Min, etc.) that I choose, would the
records come out the same? I tested those options with a small group of
populations, and they came out the same. I just have a concern that when I
go live with mass data, they would not come out the same.

Thanks.
 
D

Duane Hookom

I expect there should only be one value per student per school year so it
doesn't make any difference if you use first or last or min or max.
 
J

John W. Vinson

I am just
wondering whichever the option (First, Min, etc.) that I choose, would the
records come out the same?

The first of a set of one records will be... the one record.

Same with the other choices!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top