Leopardfist
Access Newb
- Local time
- Today, 12:38
- Joined
- Feb 14, 2006
- Messages
- 87
OK, this is an example table, and example of what I need in my report. If anyone can help me figure this out it would be great.
Very simple table: Employees
Employee ID - Number
Employee City - Text (Minneapolis or St. Paul)
Employee Sex - Text (Male or Female)
Employee Status - Text (Full Time or Part Time)
Now for my report I want it to basically show the following:
Employees in St. Paul: [count of how many employees live in St. Paul]
Employees in Minneapolis: [Count of how many in Minneapolis]
Total Employees: [Count of total employees]
Male Employees: [Count of Male Employees]
Female Employees: [Count of Females]
Full Time: [Count of full time employees]
Part Time: [Count of part time employees]
That basically shows how I need to gather counts on more than one field for a single report. I have beaten this problem previously by doing a crosstab for one value, and a subreport for the second value. Recently it became necessary to report the third value [count] and I tried adding a second subreport which did not work. After thinking I figured just changing to one single query to look for all values, I could make the report much easier and simpler. I tried adding the 4 fields to the query and choosing Count instead of group by, but when I run it it only shows the headings, no data/results.
Can someone help me or put me on the right track as to how to do this the easiest way?
P.S. If it would be easier, I could send you the actual database and show you which query I use now and what I need added to the report, if you think it would be easiest to see exactly what I have. But it is a large file, my main table has 40 or so fields.
Very simple table: Employees
Employee ID - Number
Employee City - Text (Minneapolis or St. Paul)
Employee Sex - Text (Male or Female)
Employee Status - Text (Full Time or Part Time)
Now for my report I want it to basically show the following:
Employees in St. Paul: [count of how many employees live in St. Paul]
Employees in Minneapolis: [Count of how many in Minneapolis]
Total Employees: [Count of total employees]
Male Employees: [Count of Male Employees]
Female Employees: [Count of Females]
Full Time: [Count of full time employees]
Part Time: [Count of part time employees]
That basically shows how I need to gather counts on more than one field for a single report. I have beaten this problem previously by doing a crosstab for one value, and a subreport for the second value. Recently it became necessary to report the third value [count] and I tried adding a second subreport which did not work. After thinking I figured just changing to one single query to look for all values, I could make the report much easier and simpler. I tried adding the 4 fields to the query and choosing Count instead of group by, but when I run it it only shows the headings, no data/results.
Can someone help me or put me on the right track as to how to do this the easiest way?
P.S. If it would be easier, I could send you the actual database and show you which query I use now and what I need added to the report, if you think it would be easiest to see exactly what I have. But it is a large file, my main table has 40 or so fields.