I have many forms and tables and experiencing problems appending the data to the tables as its repeating. In a nutshell say i have these tables: Student_Details, grades and a lookup table courses. Student_Details has a one-to-many relationship with Grades.
i.e. in bold are the primary keys
Student_Details...
StudentID Name Age
Grades....
StudentID Course Grade
Courses....
computing
history
law
politics
Suppose i wish to enter the following information
James, law - Pass, computing - Distinction, History - Merit, politics - Fail
im getting
StudentID Course Grade
1 - computing - Distinction
1 - history - Merit
1 - law - Pass
1 - politics - Fail
which is fine.
but when i wish to enter a second record Simon, 31 (law - Pass, computing - Merit, history - Fail, politics - Fail) i get
StudentID Course Grade
1 - computing - Distinction
1 - computing - Merit
1 - history - Fail
1 - history - Merit
1 - law - Pass
1 - politics - Fail
2 - computing - Merit
2 - history - Fail
2 - law - Pass
2 - politics - Fail
i want to have only 4 records for studentID 1
i have attached a sample..
Thank you in advance
i.e. in bold are the primary keys
Student_Details...
StudentID Name Age
Grades....
StudentID Course Grade
Courses....
computing
history
law
politics
Suppose i wish to enter the following information
James, law - Pass, computing - Distinction, History - Merit, politics - Fail
im getting
StudentID Course Grade
1 - computing - Distinction
1 - history - Merit
1 - law - Pass
1 - politics - Fail
which is fine.
but when i wish to enter a second record Simon, 31 (law - Pass, computing - Merit, history - Fail, politics - Fail) i get
1 - computing - Distinction
1 - computing - Merit
1 - history - Fail
1 - history - Merit
1 - law - Pass
1 - politics - Fail
2 - computing - Merit
2 - history - Fail
2 - law - Pass
2 - politics - Fail
i want to have only 4 records for studentID 1
- i get a message saying 'appending 2 records'! - but i only want to append 1 record - Simon??. Instead if the 'course and grade' of the second are the same as the first they are not repeated if different they are added to the first student
i have attached a sample..
Thank you in advance
Attachments
Last edited: