I have a form with a field named comment which is populated from the following code (which is on the after update property of text box on the form which allows users to enter text):
Private Sub txtNewComment_AfterUpdate()
Dim NewComment As String
txtNewComment.SetFocus
NewComment = txtNewComment.Text
txtNewComment = Null
Comment.SetFocus
If (IsNull(Comment) = True) Or (Comment.Text = "") Then
Comment = "Entered: " & vbNewLine & Date & " " & Time & " " & NewComment
Else
Comment = Comment.Text & vbNewLine & Date & " " & Time & " " & NewComment
End If
End Sub
I need to be able to take the value of the field comment and update a field named tracking notes in the table bound th the form.
thanks for your assistance.
Private Sub txtNewComment_AfterUpdate()
Dim NewComment As String
txtNewComment.SetFocus
NewComment = txtNewComment.Text
txtNewComment = Null
Comment.SetFocus
If (IsNull(Comment) = True) Or (Comment.Text = "") Then
Comment = "Entered: " & vbNewLine & Date & " " & Time & " " & NewComment
Else
Comment = Comment.Text & vbNewLine & Date & " " & Time & " " & NewComment
End If
End Sub
I need to be able to take the value of the field comment and update a field named tracking notes in the table bound th the form.
thanks for your assistance.