HeatherRowan
New member
- Local time
- Yesterday, 22:24
- Joined
- Mar 2, 2020
- Messages
- 5
I am working on building a database for student retention data. There are various bits of data I am collecting, but there are three data points where the student can have multiple values: holds, attributes, and reasons for leaving.
I do not want to use the MVF function, as I can not export the data properly to import into either Tableau or some other data visualization software. You can find my database here: Retentiondatabase I have removed any confidential information and I know very little about coding - I have used examples and tutorials to get the coding for this project.
I have four tables: Students, Holds, Majors, StudentHolds (which is the joined table). And I have the relationships set up as shown below.
I have a main form "Student Details" that will eventually display all the relevant information for the student. On this main form, I have the"qryHoldList subform" that shows all the different holds a student might have, separated by commas.
I also have a "frmStudentHolds" which holds the "frmsubStudentHolds" to properly display the multiple values/holds.
What I am trying to do is to have a cmd button "Edit Holds" to open the "frmStudentHolds" for the specific student to add/edit the student's holds. I can edit existing holds for the specific record, but if the student does not have any holds listed (and therefore no record on the StudentHolds table) I get the error "You must enter a value in the 'StudentHolds.StudentID' field." How can I get the frmStudentHolds to add a record to that table based on the StudentID? I feel as though I am missing something simple but I'm lost.
Any help would be wonderful. Especially since I will have to go through this process two more times for the attribute and reasons for leaving.

I do not want to use the MVF function, as I can not export the data properly to import into either Tableau or some other data visualization software. You can find my database here: Retentiondatabase I have removed any confidential information and I know very little about coding - I have used examples and tutorials to get the coding for this project.
I have four tables: Students, Holds, Majors, StudentHolds (which is the joined table). And I have the relationships set up as shown below.
I have a main form "Student Details" that will eventually display all the relevant information for the student. On this main form, I have the"qryHoldList subform" that shows all the different holds a student might have, separated by commas.
I also have a "frmStudentHolds" which holds the "frmsubStudentHolds" to properly display the multiple values/holds.
What I am trying to do is to have a cmd button "Edit Holds" to open the "frmStudentHolds" for the specific student to add/edit the student's holds. I can edit existing holds for the specific record, but if the student does not have any holds listed (and therefore no record on the StudentHolds table) I get the error "You must enter a value in the 'StudentHolds.StudentID' field." How can I get the frmStudentHolds to add a record to that table based on the StudentID? I feel as though I am missing something simple but I'm lost.
Any help would be wonderful. Especially since I will have to go through this process two more times for the attribute and reasons for leaving.
