In my form I have this code as the Dirty event of text box named "Completed." Complete is the checkbox):
Private Sub Completed_Dirty(Cancel As Integer)
If Me![Completed] = "" Then
Me![Complete].Value = False
Else
Me![Complete].Value = True
End If
End Sub
So basically when the person clears the text box, it will uncheck the checkbox, and when they enter data into it it will become checked.
What's wrong with this code? Thanks in advance for the help
Private Sub Completed_Dirty(Cancel As Integer)
If Me![Completed] = "" Then
Me![Complete].Value = False
Else
Me![Complete].Value = True
End If
End Sub
So basically when the person clears the text box, it will uncheck the checkbox, and when they enter data into it it will become checked.
What's wrong with this code? Thanks in advance for the help