G
Guest
I am trying to create a label that will provide a warning if an expiration
date has passed.
This is the code that I am using for the form_current:
Me.LblExpiredPassport.Visible = False
Select Case PassExpiration
Case Is = PassExpiration < Date
'Date is earlier than now
Me.LblExpiredPassport.Visible = True
Case Else
End Select
I also have similar coding under the beforeupdate and afterupdate for the
PassExpiration field:
Me.LblExpiredPassport.Visible = False
Select Case PassExpiration
Case Is = PassExpiration < Date
'Date is earlier than now
Me.LblExpiredPassport.Visible = True
Case Else
End Select
What happens is - nothing. Regardless of the expiration date, the label is
not appearing.
Any suggestions?\
TIA
Papa
date has passed.
This is the code that I am using for the form_current:
Me.LblExpiredPassport.Visible = False
Select Case PassExpiration
Case Is = PassExpiration < Date
'Date is earlier than now
Me.LblExpiredPassport.Visible = True
Case Else
End Select
I also have similar coding under the beforeupdate and afterupdate for the
PassExpiration field:
Me.LblExpiredPassport.Visible = False
Select Case PassExpiration
Case Is = PassExpiration < Date
'Date is earlier than now
Me.LblExpiredPassport.Visible = True
Case Else
End Select
What happens is - nothing. Regardless of the expiration date, the label is
not appearing.
Any suggestions?\
TIA
Papa