Hi, i have code which is attached to onclick of a checkbox,
what i want it to do is if the user clicks it and checks it then to add some note to a memo field, if the user clicks it and its already checked then it doesn't add a note to a memo field.
but i can't seem to add any other lines which make sense to me that it doesnt add "letter sent" to a memo field if its already checked?
any help would be appreciated
what i want it to do is if the user clicks it and checks it then to add some note to a memo field, if the user clicks it and its already checked then it doesn't add a note to a memo field.
Code:
Private Sub Check45_Click()
If Check45 = 0 Then
Check45 = 1
If Len([Forms]![Customer]!Notes.Value & "") = 0 Then
Forms![Customer]!Notes.Value = VBA.DateTime.Date & " " & VBA.DateTime.Time & " - " & _
"letter Sent"
Else
Forms![Customer]![Notes] = Forms![Customer]!Notes.Value & _
vbNewLine & _
VBA.DateTime.Date & " " & VBA.DateTime.Time & " - " & _
"letter Sent"
End If
End Sub
but i can't seem to add any other lines which make sense to me that it doesnt add "letter sent" to a memo field if its already checked?
any help would be appreciated