I'm sure this is an easy one but I can't find help anywhere. Maybe i'm using the wrong termonology!
All I want to do is display a command button in a main form if a date field in the subform is <= Date() - 90.
I've managed to do this by doing the following:
This only works if the first record in the subform matches the date criterea. What I want to do is search the date field in all the records of the subform and apply the condition.
Can anyone help?
Thanks in advance
All I want to do is display a command button in a main form if a date field in the subform is <= Date() - 90.
I've managed to do this by doing the following:
Code:
Private Sub Form_Timer()
If Forms!Exams!ExamsSubform!Date <= Date - 90 Then
cmdProcess.Enabled = True
Else
cmdProcess.Enabled = False
End If
This only works if the first record in the subform matches the date criterea. What I want to do is search the date field in all the records of the subform and apply the condition.
Can anyone help?
Thanks in advance