If IsNull(Me.txtNewComment) or Me.txtNewComment = "" Then
Msgbox "Please enter a comment before pressing the append comment button"
Exit Sub
End If
[COLOR="SeaGreen"]' You have already tested for a null or empty string new comment
' so the next bit doesn't need to check for that again, and is therefore even simpler.[/COLOR]
Me.txtComment = Now() & " - " & Me.txtNewComment & me.txtComment
Me.txtNewComment = ""