G
Guest
Hi,
I have a form with a comments and a history field. After the user types in
the new comments, they click a button to update the history field. This is
supposed to clear the comments field after updating history, but I keep
getting the error "Invalid use of null". Can you tell me what I am doing
wrong?
Arlene
Here is my code:
If Me.Comments <> "" Then
strComments = "" & Me.Comments
strOldComments = "" & Me.Comments
strHistory = Me.History
strOldHistory = Me.History
strNewHistory = Date & " - " & strComments & vbNewLine & strHistory
Me.Comments = ""
Me.History = strNewHistory
End If
I have a form with a comments and a history field. After the user types in
the new comments, they click a button to update the history field. This is
supposed to clear the comments field after updating history, but I keep
getting the error "Invalid use of null". Can you tell me what I am doing
wrong?
Arlene
Here is my code:
If Me.Comments <> "" Then
strComments = "" & Me.Comments
strOldComments = "" & Me.Comments
strHistory = Me.History
strOldHistory = Me.History
strNewHistory = Date & " - " & strComments & vbNewLine & strHistory
Me.Comments = ""
Me.History = strNewHistory
End If