D
deb
I my subform, there is a textbox called OutageYYYY.
If the OutageYYYY is greater than 10 past this year, give msg.
I tried,
If [OutageYYYY] > ((Year(Date())) + 10) Then
MsgBox "Outage year is more than 10 years out. Please verify.", vbOKOnly,
"Verify Outage Year."
End If
End Sub
keeps changing to ... as soon as I move my curser off of the code
If [OutageYYYY] > ((Year(Date)) + 10) Then
What is the correct code?
If the OutageYYYY is greater than 10 past this year, give msg.
I tried,
If [OutageYYYY] > ((Year(Date())) + 10) Then
MsgBox "Outage year is more than 10 years out. Please verify.", vbOKOnly,
"Verify Outage Year."
End If
End Sub
keeps changing to ... as soon as I move my curser off of the code
If [OutageYYYY] > ((Year(Date)) + 10) Then
What is the correct code?