HI,
I have a main table (tblStudents) that holds students where the unique field is StudentID; and a related table (tblNotes) on a one-to-many relationship, where the unique field is NotesID, and the linked field (relationship) is with NotesStudentID. That is one student can have many notes.
I run a query where we isolate a number of students (qryChase).
What I would like to be able to do is then run an update query using the dataset from qryChase. I can update the information I want to land in the Notes table, but don't know how to commit each of these records to the individual student records. That is - I run an update that enters the Notes details including allocating a NotesID, but the Notes table is missing the corresponding entry in NotesStudentID - so it is not linked to each individual record.
I tried entering =StudentID in the Update line of the the NotesStudentID field but that gave me a type conversion failure and still didn't work. I really have no idea if what I want to do is possible, or if the answer is really simple.
I have built a form and subform linking the student records with notes and that works, so I think my relationship setup is ok.
I hope someone is able to either help me or tell me I'm dreaming. I hope this is not a complicated task.....
Thanks for your help in advance,
Regards,
Marcella
I have a main table (tblStudents) that holds students where the unique field is StudentID; and a related table (tblNotes) on a one-to-many relationship, where the unique field is NotesID, and the linked field (relationship) is with NotesStudentID. That is one student can have many notes.
I run a query where we isolate a number of students (qryChase).
What I would like to be able to do is then run an update query using the dataset from qryChase. I can update the information I want to land in the Notes table, but don't know how to commit each of these records to the individual student records. That is - I run an update that enters the Notes details including allocating a NotesID, but the Notes table is missing the corresponding entry in NotesStudentID - so it is not linked to each individual record.
I tried entering =StudentID in the Update line of the the NotesStudentID field but that gave me a type conversion failure and still didn't work. I really have no idea if what I want to do is possible, or if the answer is really simple.
I have built a form and subform linking the student records with notes and that works, so I think my relationship setup is ok.
I hope someone is able to either help me or tell me I'm dreaming. I hope this is not a complicated task.....
Thanks for your help in advance,
Regards,
Marcella
Comment