I have a form with a name field and social security field and checkoxes that are to be checked if the social security number is corrected or added on an existing record. I have some code that places a check into the SSN Corrected checkbox whenever the SSN is changed. However, I'm unable to check the SSN Added box using the same type of code. The SSN Added checkbox is to be checked only if the name field was already filled and the Social Security Number field was blank... not a new record. Here is the code I'm attempting to use... no laughing please. :-D
Any tips are greatly appreciated.
Code:
Private Sub SOCIAL_SECURITY_AfterUpdate()
If (Me.sduNAME.Value <> Null Or Me.sduNAME.Value <> "") Then
If [SOCIAL_SECURITY].OldValue = Null Or SOCIAL_SECURITY.OldValue = "" Then
Me.SSN_Added.Value = True
Me.SSN_Corrected.Value = False
End If
If SOCIAL_SECURITY.OldValue <> Null Or SOCIAL_SECURITY.OldValue <> "" Then
Me.SSN_Corrected.Value = True
Me.SSN_Added.Value = False
End If
End If