RTimberlake said:
I will do my best:
This is the table layout for an evaluation that I am working on for our
students. The employee evaluation that Irefered to in the previous
question
will be set up the exact same way.
tblEmployee: empEmpID(autonumber); empLastName(Text); empFirstName
(Text)
tblStudent: stuStudentID(autonumber); stuLastName(text);
stuFirstName(text); stuActive(yes/no)
tblEvalFactors: evfFactorID(autonumber); evfSort(number);
evfFactor(text);
evfDescription(memo); evfActive(yes/no)
tblEvalDetails: evdEvalDetailID(autonumber); evdEvalID(number{link to
tblEvaluation}); evdFactorID(number {link to tblEvaluation});
evdRating(number); evdComments(memo)
tblEvaluation: evaEvalID(autonumber); evaStudentID(number);
evaDate(Date/Time); evaByEmpID(number); evaComments(memo);
evaRecommend(memo)
Please let me know if you need more info.
The directions I'm giving you will allow you to show the results in a query
that can be used in a report, but I don't think you can make a form out of
it:
Open up the query builder. Show the following tables:
tblStudent, tblEvalFactors, tblEvalDetails, tblEvaluation
If there's not a join line going from tblStudent.stuStudentID to
tblEvaluation.evaStudentID , click on tblStudent.stuStudentID and drag it
across to create a join.
From tblEvalFactors, select evfDescription, evfActive, and any other things
in that table you want shown in your query
Now, from tblStudent, select stuLastName, stuFirstName, stuActive
From tblEvalDetails: evdRating
tblEvaluation is just there to make sure all the joins work...you can't show
that level of detail and still get the aggregation you want from your query.
Now, go to the View menu and select "totals."
Once you've done that, go to the stuActive and evfActive columns and in the
Totals row select "where". In the Criteria row, put "Yes"
Under evdRating, in the Totals row, select "Avg."
That should get you pretty close...as close as I can come without having
your database in front of me.
HTH;
Amy