JJINFM
asked on
Multiple values in a crosstab query
Hello Experts,
I am trying to figure out if a crosstab query in Access 2007 can have more than one value. What I am trying to do is list all of our products sold for the month as a row heading, list all our locations as column headings and then show the number of units sold as one value, and then the total sales generated by those units sold as the second value.
Any help is appreciated.
Thanks,
JJ
I am trying to figure out if a crosstab query in Access 2007 can have more than one value. What I am trying to do is list all of our products sold for the month as a row heading, list all our locations as column headings and then show the number of units sold as one value, and then the total sales generated by those units sold as the second value.
Any help is appreciated.
Thanks,
JJ
did you try using the Crosstab query wizard?
ASKER
I did and I can only select one value when is asks for the number to be calcuated at the row and column intersection. If I try to modify the query by adding a second value it tells me that I can use only one value option.
can you upload a copy of your db?
ASKER
OK, here is the table that I am basing the query on and a query that I created with the crosstab wizard,
Thanks JJ
Database1.accdb
Thanks JJ
Database1.accdb
32.4 MB is a bit big - when did you last do a compact & repair? You should always do a C & R before uploading.
A lot of us in this forum do not use A2007. Anyway you can copy the db over to an A2003 mdb?
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks glad to help. BTW you might as well remove the Space(8) before and after the PIVOT field - it is ignored by Jet - I was just trying to get the fields of the Cross tab set a bit wider.