In our Student Administration database, I have two forms with sub-forms that perform similar functions.
One is called Tests and Grades and the other is called Evaluation Parameters and Ratings.
In both cases, the "Master" form contains parameter type information.
Test parameters is bound to a Test Parameters table that has a record for each of 14 tests given during the course of our 16 week food service training academy class. The record includes the class number, test number, date, # questions, weight and grade scoring parameters. The sub form displays all the student detail records (ie., Test results). It is where, via an unbound combo box look up, students are selected from the look up list and the student's test result (# of incorrect answers) is entered. A test results record is then created with this information and all such records are displayed in the sub-form.
The Evaluation parameters "Master" form and Evaluation Ratings works in the same way. Rating scores (from 4=Excellent to 1=Unsatisfactory) in 9 different fields (eg., Task Completion, Attitude, Teamwork, Following Directions) are entered and an Evaluations record is created.
In both student combo box look up queries, there is criteria that the Class number for the student equal that for the Master Parameter record. When you change the Master record to one from a different class (eg., you are looking at Test 14 for Class 2014-3 then change to Test 1 for class 2015-1), then the list of students supplied by the combo box look up query in the sub-form shows only students from that class. Similarly, any previously entered records displayed would also be only for that parameter (test or evaluation) and class.
Both forms use a query as record source for the sub-form which query includes fields from the respective parameter table, the detail table (ie., Test Results and Evaluations respectively) and a Students Extended query.
The Tests and Grades form works excellently with the list of students changing as soon as you move to a Master record that is for a different class.
The Evaluation Parameters and Ratings form, however, has a "lag" requiring clicking Refresh All on the Ribbon in order to "sync" the Master, Sub-form and student look up Combo box. Through painstaking re-creation, I have observed that the difference is that the Test and Grades sub-form Default View property is Datasheet, while the Evaluation Parameters and Ratings sub-form is Continuous Forms. The latter is because there are too many Evaluations fields to display in a datasheet without an unacceptable amount of scrolling. But, when I changed the Evaluations sub form to Datasheet, it performed properly, just like the Tests and Grades sub-form.
So I have the following questions:
- Is the fact that the sub-form with Datasheet Default View displays and instantly syncs properly while other Default Views require a refresh a known or at least understandable Access trait?
- How can the Evaluation Ratings sub-form be made to sync properly with the Master form without having to click Refresh?
- As a compromise, how could I create a "Refresh" button on the form and what would be some sample coding for it?
Please let me know if any of the above is unclear or lacking information.
As always any help is greatly appreciated.