G
Guest
Something is wrong, and i know it's simple.
Here is my code:
''' Determining if the Certificate has expired '''
Dim CurrentDate As Date
CertDate = Me.Text84
If CertDate = "" Then
Me.Text203 = ""
Else
Me.Text203 = DateAdd("d", 365, CertDate)
End If
If CurrentDate < Me.Text203 Then
Me.Text201 = "Certificate has EXPIRED!"
End If
If CurrentDate > Me.Text203 Then
Me.Text201 = ""
End If
Here is what i need.
I want some text to tell me "Certificate has EXPIRED!" if the certificate is
past the current date.
And do nothing in the text box if it the date is not past the current date.
Certdate = Date entered on the form of when the cert date is.
The cert expires 365 days after that.
I started with this:
If CurrentDate < Me.Text203 Then
Me.Text201 = "Certificate has EXPIRED!"
else
Me.Text201 = ""
End If
But, it produced the opposite result.
Thanks.
Here is my code:
''' Determining if the Certificate has expired '''
Dim CurrentDate As Date
CertDate = Me.Text84
If CertDate = "" Then
Me.Text203 = ""
Else
Me.Text203 = DateAdd("d", 365, CertDate)
End If
If CurrentDate < Me.Text203 Then
Me.Text201 = "Certificate has EXPIRED!"
End If
If CurrentDate > Me.Text203 Then
Me.Text201 = ""
End If
Here is what i need.
I want some text to tell me "Certificate has EXPIRED!" if the certificate is
past the current date.
And do nothing in the text box if it the date is not past the current date.
Certdate = Date entered on the form of when the cert date is.
The cert expires 365 days after that.
I started with this:
If CurrentDate < Me.Text203 Then
Me.Text201 = "Certificate has EXPIRED!"
else
Me.Text201 = ""
End If
But, it produced the opposite result.
Thanks.