Firstly, I'm new to Access and VB code and what i do know is completely self taught from helpand websites like this, so be gentle.
I want to have a subform displayed depending on a selection within a Combo box on the mainform
Its a student database, the combo box is the specific course there on(STC), the subform would then ideally display the phases of that course, with fields such as mark, course notes, Exam paper, instructor, invigilater.
The only difference in the subform is the phase.
I have already created it so you can enter all the info manually, i'm just trying to make the whole process quicker.
My fields are as follows:
The link between the two is the cert number
-Student Deatils (mainform)
---Cert No
---STC
-Exam Results Subform
---Cert No (hidden from view)
---Phase
---Exam Mark
---Course Notes
---Exam Paper
---Instructor
---Invigilator
Finally my question, How do i auto populate the phase of the subform depending on the STC selected from the masterform and still be able to populate the other fields manually? Its where/what source code i'm using for the phase to hold it with the appropriate Cert No and the other subform fields.
I added an after update event, which selects the appropriate subform, that seems to work, but the info stored on the subform is always the same as the original subform and not my adapted subform. It always displays Exam Results Subform and not subfrm phase 3104, Its like the source code i have seleced in the Exam Results Subform is overwriting whats on the subfrm 3104.
I'm sure its very simple and basic but i'm suffering from database overload at the moment and can't see the woods for all the trees.
I want to have a subform displayed depending on a selection within a Combo box on the mainform
Its a student database, the combo box is the specific course there on(STC), the subform would then ideally display the phases of that course, with fields such as mark, course notes, Exam paper, instructor, invigilater.
The only difference in the subform is the phase.
I have already created it so you can enter all the info manually, i'm just trying to make the whole process quicker.
My fields are as follows:
The link between the two is the cert number
-Student Deatils (mainform)
---Cert No
---STC
-Exam Results Subform
---Cert No (hidden from view)
---Phase
---Exam Mark
---Course Notes
---Exam Paper
---Instructor
---Invigilator
Finally my question, How do i auto populate the phase of the subform depending on the STC selected from the masterform and still be able to populate the other fields manually? Its where/what source code i'm using for the phase to hold it with the appropriate Cert No and the other subform fields.
I added an after update event, which selects the appropriate subform, that seems to work, but the info stored on the subform is always the same as the original subform and not my adapted subform. It always displays Exam Results Subform and not subfrm phase 3104, Its like the source code i have seleced in the Exam Results Subform is overwriting whats on the subfrm 3104.
I'm sure its very simple and basic but i'm suffering from database overload at the moment and can't see the woods for all the trees.
Comment