Okay, I know this has got to be easy. I'm just in a sleep deprived state and I've hit a wall after designing reports all morning long and huffing insecticide. I've tried searching for what I'm missing, but I'm even having trouble explaining what it is I want, let alone coming up with the keywords for a good search.
So I have X patients in the database, and I want to compare that to patients in each county. Patient table has a field that notes which school the patient goes to (foreign key). That school is in a county, and that's how we determine the county they are in.
Query pulls Schools.SchoolCounty, Patients.PatientID, Patients.FirstName, Patients.LastName. It could be that the only things I need in the query are the county and the PatientID, since that's really what I'm counting.
In the report, I can do Count(*). If I group by Schools.SchoolCounty and put it in the header for the county I get just the count of students in that county. If I put it in details I get the count for total patients. I can't think of how to make these interact so I can do the simple math needed. Is it as simple as like.. Count([SchoolCounty="CountyName"])?
Edit: Worded it a tad better. Rather than saying comparing to just one county I should have said compare the total to each county
So I have X patients in the database, and I want to compare that to patients in each county. Patient table has a field that notes which school the patient goes to (foreign key). That school is in a county, and that's how we determine the county they are in.
Query pulls Schools.SchoolCounty, Patients.PatientID, Patients.FirstName, Patients.LastName. It could be that the only things I need in the query are the county and the PatientID, since that's really what I'm counting.
In the report, I can do Count(*). If I group by Schools.SchoolCounty and put it in the header for the county I get just the count of students in that county. If I put it in details I get the count for total patients. I can't think of how to make these interact so I can do the simple math needed. Is it as simple as like.. Count([SchoolCounty="CountyName"])?
Edit: Worded it a tad better. Rather than saying comparing to just one county I should have said compare the total to each county
Last edited: