crosstab error

  • Thread starter Thread starter mike via AccessMonster.com
  • Start date Start date
M

mike via AccessMonster.com

hi,

Im getting error "too many crosstab column header (2077)" on my crosstab
query..heres the SQL

TRANSFORM Sum(QryGerald.QtyOnHand) AS SumOfQtyOnHand
SELECT QryGerald.MRN_No, Sum(QryGerald.QtyOnHand) AS [Total Of QtyOnHand]
FROM QryGerald
GROUP BY QryGerald.MRN_No
PIVOT QryGerald.Location;

Any help is appreciated...

mike
 
You have too many possible location values. You need to group these into
"super locations" or filter out some of the locations.
 
To filter for less columns, use something like:

TRANSFORM Sum(QryGerald.QtyOnHand) AS SumOfQtyOnHand
SELECT QryGerald.MRN_No, Sum(QryGerald.QtyOnHand) AS [Total Of QtyOnHand]
FROM QryGerald
WHERE Location Between "A" and "M"
GROUP BY QryGerald.MRN_No
PIVOT QryGerald.Location;

This wouldn't seem to have much value but you haven't helped us out here
with what you want to see.
--
Duane Hookom
MS Access MVP
--

mike via AccessMonster.com said:
Duane,
Thanks for ur reply,, can you teach me how to do this?

mike


Duane said:
You have too many possible location values. You need to group these into
"super locations" or filter out some of the locations.
[quoted text clipped - 10 lines]
 

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

Back
Top