I am tracking certifications by expiration date and class date in a form. I have it set up in vba for afterupdate action in the CLASSCOMPLETED field for the following:
Dim STRDATE As String
STRDATE = DateAdd("M", Me.FREQUENCY, Me.CLASSDATE)
If CLASSCOMPLETED = "YES" Then
EXPIRATIONDATE = STRDATE
End If
This works great, but if the user changes the CLASSCOMPLETED back to "NO" for some reason, I want the EXPIRATIONDATE to revert to the original date. I assume that I do that through error handling or Else If function but I do not know how to write it. Can anyone help?