G
Guest
Hi All,
Can some please tell me what i'm doing wrong here.
Private Sub Form_Open(Cancel As Integer)
If Form_Voucher_Subform!Expire_Date <= Date Then
Form_Voucher_Subform!Expired = True
End If
End Sub
I have a subfrom called "Voucher Subform" within a form called "repairers"
On the subform is two fields "Expire Date" and at checkbox "Expired".
I simply want the check box to be ticked (true) when the Expire Date is less
than or equal to Date() or Now().
I guess the code should fire OnCurrent instead of OnOpen really.
Any help would be appreciated.
Greg.
Can some please tell me what i'm doing wrong here.
Private Sub Form_Open(Cancel As Integer)
If Form_Voucher_Subform!Expire_Date <= Date Then
Form_Voucher_Subform!Expired = True
End If
End Sub
I have a subfrom called "Voucher Subform" within a form called "repairers"
On the subform is two fields "Expire Date" and at checkbox "Expired".
I simply want the check box to be ticked (true) when the Expire Date is less
than or equal to Date() or Now().
I guess the code should fire OnCurrent instead of OnOpen really.
Any help would be appreciated.
Greg.