Hi this is a simple descritpion of what i am trying to do:
I have a table called TblSubjects with 3 fields :
SubjectID,
SubjectName,
SubjectPoints.
SubjectID id the primary key and the user must add it manually using a number from 1-15 (The subjects must be limited to 15).
I have second table which is called TblGradesheet with fields:
GradesheetID
StudentData
ExamDate
SubjectNo1
ScoreofNo1
SubjectNo2
ScoreofNo2
...
SubjectNo15
ScoreofNo15
TotalScore
On each SubjectNo1-15 field i used lookup wizard and criteria to select a SubjectName based on the SubjectID.
I created a form FrmGradesheet where i input the test results for each student on each subject. My problem is that the SubjectNo1-15 fields are empty when i open the form and i have to select from a combobox the entry although there is only one choice for each box since i used the criteria in the lookupwizard.
What is the best way to tell the TblGradesheet and the FrmGradesheet to display the SubjectName where SubjectId = 1 for SubjectNo1 (and so on) by default? The whole purpose is to allow me to change SubjectNames from a form instead of going to design mode because i expect other teachers will want to change the Subjects they are teaching and testing and the points as well.
Thank you.


Populate FORM with values entered in another table
Reply With Quote

