Hi
In Access 2003 I have:
T.ParticipantTypes T.ParticipantNumber
Adults 123
Teens 456
Children 789
Seniors 0
Families 123
Daycare 456
I created a crosstab query that shows:
Adults Teens Children Seniors Familes Daycare
Total 258 123 0 0 0 123 12
1701 0 456 789 0 0 456
I need the crosstab query to show:
Adults Children Others
Total 258 123 0 135
1701 0 789 912
My Crosstab Query SQL goes like this:
CrosstabBase query goes like this:
Any solutions, or perhaps much, much easier way to get my data to display?
Thanks in advance!
In Access 2003 I have:
T.ParticipantTypes T.ParticipantNumber
Adults 123
Teens 456
Children 789
Seniors 0
Families 123
Daycare 456
I created a crosstab query that shows:
Adults Teens Children Seniors Familes Daycare
Total 258 123 0 0 0 123 12
1701 0 456 789 0 0 456
I need the crosstab query to show:
Adults Children Others
Total 258 123 0 135
1701 0 789 912
My Crosstab Query SQL goes like this:
Code:
TRANSFORM Sum(CrossTabBase.ParticipantNumber) AS SumOfParticipantNumber
SELECT CrossTabBase.LocationType, CrossTabBase.SponsorType, Sum(CrossTabBase.ParticipantNumber) AS [Total Of ParticipantNumber]
FROM CrossTabBase
GROUP BY CrossTabBase.LocationType, CrossTabBase.SponsorType
ORDER BY CrossTabBase.SponsorType
PIVOT CrossTabBase.ParticipantType;
CrosstabBase query goes like this:
Code:
SELECT CentralTable.ProgramDate, CentralTable.ParticipantNumber, LocationType.LocationType, ParticipantType.ParticipantType, SponsorType.SponsorType
FROM SponsorType INNER JOIN (ParticipantType INNER JOIN (LocationType INNER JOIN CentralTable ON LocationType.LocationID=CentralTable.LocationID) ON ParticipantType.ParticipantID=CentralTable.ParticipantID) ON SponsorType.SponsorID=CentralTable.SponsorID;
Any solutions, or perhaps much, much easier way to get my data to display?
Thanks in advance!