I am trying to use this code to automate note entering by allowing the correct spacing and adding user name and time and date. When I use this code all it will do is add one space and two boxes under the user name and time and date. I need at least 2 spaces under the name, time and date and then have the cursor return to the position under the name, time and date. So that it would look something like this:
***User***Time***Date
Message
***User***Time***Date
Message
Here is the code I am working with"
Private Sub Notes_Entry_Click()
Dim intStart As Integer
Me.Notes = "***" & CurrentUser() & "***" & Now() & Chr(13) & Chr(13) & Chr(13) & Chr(10) & Chr(10) & Chr(10) & Me.Notes
intStart = Len("***" & CurrentUser() & "***" & Now() & Chr(13) & Chr(13) & Chr(13) & Chr(10) & Chr(10) & Chr(10))
'Sets the Cursors Starting Position
Me.Notes.SetFocus
Me.Notes.SelStart = intStart
End Sub
Can someone help revise? Thanks in advance. Sam
***User***Time***Date
Message
***User***Time***Date
Message
Here is the code I am working with"
Private Sub Notes_Entry_Click()
Dim intStart As Integer
Me.Notes = "***" & CurrentUser() & "***" & Now() & Chr(13) & Chr(13) & Chr(13) & Chr(10) & Chr(10) & Chr(10) & Me.Notes
intStart = Len("***" & CurrentUser() & "***" & Now() & Chr(13) & Chr(13) & Chr(13) & Chr(10) & Chr(10) & Chr(10))
'Sets the Cursors Starting Position
Me.Notes.SetFocus
Me.Notes.SelStart = intStart
End Sub
Can someone help revise? Thanks in advance. Sam