J
Julius_Council
Ok, first of I'm a total newb.
Now that my disclaimer is out of the way.
I have 3 queries, each of them are related in some way.
First query is supposed to count the number of exams taken for a time frame.
SELECT Count([Exam History 1].Exam) AS CountOfExam
FROM [Exam History 1]
WHERE ((([Exam History 1].[Job code])="3") AND (([Exam History 1].Examdate)
Between [beginning date] And [ending date]) AND (([Exam History 1].[Test
type])=[forms]![info entry for reports]![exam type]));
the second query is supposed to count the number of exams passed in a
timeframe
(passed is 80 percent or better)
SELECT Count([Exam History 1].[Record Number]) AS [CountOfRecord Number]
FROM [Exam History 1] INNER JOIN Grade ON [Exam History 1].[Record Number] =
Grade.[Record Number]
WHERE ((([Exam History 1].[Job code])="3") AND (([Exam History 1].Examdate)
Between [forms]![Info entry for reports]![beginning date] And [forms]![Info
entry for reports]![ending date]) AND (([Exam History 1].[Test
type])=[forms]![Info entry for reports]![Test type]) AND (([Exam History
1].Grade)>=80));
Last and most important is a query that is supposed to give me a pass rate.
SELECT [Instr # passed/time frame]![CountOfRecord Number]/[INSTR # exams
taken/time frame]![CountOfExam] AS Expr1
FROM [Instr # passed/time frame], [INSTR # exams taken/time frame];
The first two queries work perfectly, the last....I seem to be having a
problem with. It asks for the beginning and end date twice and the type of
exam twice. It will output the correct data but I would like my database to
work efficiently. Can someone please provide some assistance?
Thanks,
Now that my disclaimer is out of the way.
I have 3 queries, each of them are related in some way.
First query is supposed to count the number of exams taken for a time frame.
SELECT Count([Exam History 1].Exam) AS CountOfExam
FROM [Exam History 1]
WHERE ((([Exam History 1].[Job code])="3") AND (([Exam History 1].Examdate)
Between [beginning date] And [ending date]) AND (([Exam History 1].[Test
type])=[forms]![info entry for reports]![exam type]));
the second query is supposed to count the number of exams passed in a
timeframe
(passed is 80 percent or better)
SELECT Count([Exam History 1].[Record Number]) AS [CountOfRecord Number]
FROM [Exam History 1] INNER JOIN Grade ON [Exam History 1].[Record Number] =
Grade.[Record Number]
WHERE ((([Exam History 1].[Job code])="3") AND (([Exam History 1].Examdate)
Between [forms]![Info entry for reports]![beginning date] And [forms]![Info
entry for reports]![ending date]) AND (([Exam History 1].[Test
type])=[forms]![Info entry for reports]![Test type]) AND (([Exam History
1].Grade)>=80));
Last and most important is a query that is supposed to give me a pass rate.
SELECT [Instr # passed/time frame]![CountOfRecord Number]/[INSTR # exams
taken/time frame]![CountOfExam] AS Expr1
FROM [Instr # passed/time frame], [INSTR # exams taken/time frame];
The first two queries work perfectly, the last....I seem to be having a
problem with. It asks for the beginning and end date twice and the type of
exam twice. It will output the correct data but I would like my database to
work efficiently. Can someone please provide some assistance?
Thanks,