Hey,
I am trying to do a fairly simple validation, but it just won't work! I have 14 module options (split into 2 categories-semester 1 and semester 2) and I am attempting to ensure that one option per category is checked in relation to chosen course title. I have tried all sorts of IF and Case statements- i don't get any error message but it just doesn't work the way I want it to. With the code the way it is at the moment, Valid8 always appears to be false. Here's my code:
I would like a different msgbox to come up for each valid 8/9/10
Any help would be very much appreciated-I bet it is a silly mistake
Thanks
Sophie
I am trying to do a fairly simple validation, but it just won't work! I have 14 module options (split into 2 categories-semester 1 and semester 2) and I am attempting to ensure that one option per category is checked in relation to chosen course title. I have tried all sorts of IF and Case statements- i don't get any error message but it just doesn't work the way I want it to. With the code the way it is at the moment, Valid8 always appears to be false. Here's my code:
Code:
Core1 = Sem1Op7 + Sem2Op7
Core2 = Sem1Op5 + Sem2Op6
Core3 = Sem1Op6 + Sem2Op5
Course = DLookup("[CourseTitle]", "Student", "[CourseTitle] = Forms!Student!Frame10")
If (Core1 = -2) And (Course = "1") Then
Valid8 = True
ElseIf (Core2 = -2) And (Course = "2") Then
Valid9 = True
ElseIf (Core3 = -2) And (Course = "3") Then
Valid10 = True
End If
Any help would be very much appreciated-I bet it is a silly mistake
Thanks
Sophie
Comment