I have set up a timesheet for an educational establishment, which has a subform by month where teachers enter times, incorporated into a main form which has their details. The subform is set up as a tabular form, so the teacher can pick date, start time, end time etc. I want to add a learner field which only becomes enabled once the teacher picks a certain value in the function field. I have used the following code:
The problem is: this is enabling or disabling ALL Learner fields in the subform. How do I make it specific to the record being entered?
Thanks.
PS - I am very new to VBA so I am transfering ZXSpectrum BASIC skills. Please be patient with me!!
Code:
If Forms!Staff!August!Function = 8 Then Forms!Staff!August!Learner.Enabled = True Else Forms!Staff!August!Learner.Enabled = False End If
Thanks.
PS - I am very new to VBA so I am transfering ZXSpectrum BASIC skills. Please be patient with me!!
Comment