Hello All,
I am trying to get some information to auto insert into a memo field BEFORE the user enters information. It works except now they want to choose if they want the info to insert before entering.
I added a msgbox to the code, and it works, but now if the memo field is null it puts the auto inserted text on the second line. (it is not checking for null)
ANy help would be appreciated!
Raven
I am trying to get some information to auto insert into a memo field BEFORE the user enters information. It works except now they want to choose if they want the info to insert before entering.
I added a msgbox to the code, and it works, but now if the memo field is null it puts the auto inserted text on the second line. (it is not checking for null)
Code:
Dim msgresponse As VbMsgBoxResult
msgresponse = MsgBox("DO YOU WANT TO ADD THE DATE INTO THE COMMENTS FIELD", vbQuestion + vbYesNo, "ADD DATE TO COMMENTS")
If msgresponse = vbYes Then
If Me.comments.Value = Null Then
Me!comments = "NEW COMMENT: " & "-(" & Now() & ");"
Else
Me!comments = Me!comments & vbCrLf & "NEW COMMENT:" & "-(" & Now() & ");"
Me.comments.SelStart = Nz(Len(Me.comments) + 2, 0)
End If
Else
Me.comments.SelStart = Nz(Len(Me.comments) + 15, O)
End If
ANy help would be appreciated!
Raven