T
TForward
All,
I have an Access 2000 database at work that contains quality control data
for written reports which are released to our customers. It's a flat
table with columns like:
ReportWriter - person writing the report
ReportDate - when the report was released
FormatCorrect? - y/n, was the format correct
FormatErrors? - the number of formatting errors
GrammCorrect? - y/n, was grammar correct
GrammErrors? - the number of grammar errors
SpellCorrect? - y/n, was everything spelled right
SpellErrors? - the number of spelling errors
There are 12-ish categories for QC and some misc other fields, but I
won't list them all. I'm trying to use a totals-query to first, group
all records by ReportWriter, then get the sum of errors in each column
for each ReportWriter, and finally get the count of all "y" values in all
the y/n columns for that ReportWriter. When I run my query, I get the
count of "y" values for *all* the ReportWriters. Here's my SQL I got
using the query builder:
SELECT QCRecords.ReportWriter, Count(QCRecords.[FormatCorrect?]) AS
[CountOfFormatCorrect?], Sum(QCRecords.[FormatErrors?]) AS
[SumOfFormatErrors?], Count(QCRecords.[GrammCorrect?]) AS
[CountOfGrammCorrect?], Sum(QCRecords.[GrammErrors?]) AS
[SumOfGrammErrors?], Count(QCRecords.[SpellCorrect?]) AS
[CountOfSpellCorrect?], Sum(QCRecords.[SpellErrors?]) AS
[SumOfSpellErrors?]
FROM QCRecords
GROUP BY QCRecords.ReportWriter, QCRecords.ReportDate;
This is a good start but it doesn't give me the count of "y" values in
each column matching the selected ReportWriter. The resulting dataset
will be used to create bar charts for each ReportWriter and it should
show the number of errors in each column and the number of error-free
reports which that ReportWriter released. I also want to incorporate
ReportDate so I can filter only those records within a date range based
on start/end calendar objects on a form somewhere.
I hope this is clear enough. Please help and thanks.
TForward
I have an Access 2000 database at work that contains quality control data
for written reports which are released to our customers. It's a flat
table with columns like:
ReportWriter - person writing the report
ReportDate - when the report was released
FormatCorrect? - y/n, was the format correct
FormatErrors? - the number of formatting errors
GrammCorrect? - y/n, was grammar correct
GrammErrors? - the number of grammar errors
SpellCorrect? - y/n, was everything spelled right
SpellErrors? - the number of spelling errors
There are 12-ish categories for QC and some misc other fields, but I
won't list them all. I'm trying to use a totals-query to first, group
all records by ReportWriter, then get the sum of errors in each column
for each ReportWriter, and finally get the count of all "y" values in all
the y/n columns for that ReportWriter. When I run my query, I get the
count of "y" values for *all* the ReportWriters. Here's my SQL I got
using the query builder:
SELECT QCRecords.ReportWriter, Count(QCRecords.[FormatCorrect?]) AS
[CountOfFormatCorrect?], Sum(QCRecords.[FormatErrors?]) AS
[SumOfFormatErrors?], Count(QCRecords.[GrammCorrect?]) AS
[CountOfGrammCorrect?], Sum(QCRecords.[GrammErrors?]) AS
[SumOfGrammErrors?], Count(QCRecords.[SpellCorrect?]) AS
[CountOfSpellCorrect?], Sum(QCRecords.[SpellErrors?]) AS
[SumOfSpellErrors?]
FROM QCRecords
GROUP BY QCRecords.ReportWriter, QCRecords.ReportDate;
This is a good start but it doesn't give me the count of "y" values in
each column matching the selected ReportWriter. The resulting dataset
will be used to create bar charts for each ReportWriter and it should
show the number of errors in each column and the number of error-free
reports which that ReportWriter released. I also want to incorporate
ReportDate so I can filter only those records within a date range based
on start/end calendar objects on a form somewhere.
I hope this is clear enough. Please help and thanks.
TForward