G
Guest
On one table there are four fields:
StudentID, text
ExamType, text
ExamID, text
Attempt, text
I have an index on the table to prevent a combination of these four not
having a duplicate entry. There are two circumstaces where ExamID is not
required, and therefore not monitored by the index (Mid Term and Final Exam)
I was thinking of using a DoCmd.RunSQL statement on the before update event
of the record, to see if a record already existed for this Student, ExamType,
and Attempt to promt a message and prevent the record from saving.
A related issue, is to prevent selecting "2nd" attempt, if there is not a
"1st" attempt on record for this Student, this ExamType, and this ExamID(if
applicable).
I would appreciate any referece where I can learn more on how to do this
level of data validation.
Thank you,
Renee
StudentID, text
ExamType, text
ExamID, text
Attempt, text
I have an index on the table to prevent a combination of these four not
having a duplicate entry. There are two circumstaces where ExamID is not
required, and therefore not monitored by the index (Mid Term and Final Exam)
I was thinking of using a DoCmd.RunSQL statement on the before update event
of the record, to see if a record already existed for this Student, ExamType,
and Attempt to promt a message and prevent the record from saving.
A related issue, is to prevent selecting "2nd" attempt, if there is not a
"1st" attempt on record for this Student, this ExamType, and this ExamID(if
applicable).
I would appreciate any referece where I can learn more on how to do this
level of data validation.
Thank you,
Renee