L
Les Coover
Access 2000
Each Student Record has many
Course Records, but in any one
Student Record there can not
be duplicates.
i.e. A student can't be enrolled
in the same class twice.
How can I make a routine that
will print a "Duplicate Course for
Student" message if a duplicate
is entered?
The following is my attempt using
the Exit Event for the
COURSE_NO field
Private Sub COURSE_NO_Exit(Cancel As Integer)
Dim myField As Field
For Each myField In Me![LINE SUBFORM]
IF SOMETHING TRUE THEN
MsgBox ("Duplicate Course for Student")
Else
End Sub
Next
End Sub
Any help welcomed, thanks Les
Each Student Record has many
Course Records, but in any one
Student Record there can not
be duplicates.
i.e. A student can't be enrolled
in the same class twice.
How can I make a routine that
will print a "Duplicate Course for
Student" message if a duplicate
is entered?
The following is my attempt using
the Exit Event for the
COURSE_NO field
Private Sub COURSE_NO_Exit(Cancel As Integer)
Dim myField As Field
For Each myField In Me![LINE SUBFORM]
IF SOMETHING TRUE THEN
MsgBox ("Duplicate Course for Student")
Else
End Sub
Next
End Sub
Any help welcomed, thanks Les