I am new to VB and still have difficulty writing Subs. The following
Sub Automatically updates two Check Boxes, Pass & Resit, in a form
which stores data re Exam Details.
Private Sub Mark_AfterUpdate()
If IsNull(Me.Mark) Then
Me.Pass = False
Me.Resit = False
Else
Me.Pass = (Me.Mark >= 24)
Me.Resit = Not Me.Pass
End If
End Sub
This works fine with exams that have a pass mark of 24 or over.
However There is one module, module 1, which has a pass mark of 27 or
over. The data which records the module number (Module ID) is stored
as a number from 1 to 7.
Will it be possible to ammend the Sub so that it takes this into
account, for instance:
ElseIf
Me.[Module ID] = 1 And Me.Pass = (Me.Mark >=27) Then
Me.Resit = Not Me.Pass
I have tried this with no success. Can you help?
Terry