All that and more (for example; when it returns 0) I read in the help files.
My current problem is I can't figure out how to use the InStr() function to determine if the text exists in txtColor.
I got something to work but it is not the right way of doing it.
Here's my code in all its warped glory.
My current problem is I can't figure out how to use the InStr() function to determine if the text exists in txtColor.
I got something to work but it is not the right way of doing it.
Here's my code in all its warped glory.
Code:
Private Sub chkRed_AfterUpdate()
If Me.chkRed= True Then
If InStr(txtColor, "Red") = False Or IsNull(txtColor) = True Then
txtColor = txtColor & "Red, "
End If
ElseIf Me.chkRed = False Then
If InStr(txtColor, "Red") = True Then
' do nothing
Else
txtColor = Replace(txtColor, "Red, ", "")
End If
End If
End Sub