Time/Date Stamp

I'm writing a program where a user types notes into 1 textbox and when clicking the /log button, it displays it in another textbox.  how do I get the note to be displayed with a time/date stamp in front of it? and then how do I get the next note logged in to start at the next line?
derigoAsked:
Who is Participating?
 
setiawanConnect With a Mentor Commented:
Hi derigo,

You can use now
  text2.text = now & " " & text1.text

first, you have to set your 2nd textboxt, multiline proberty to true
then add VbCrLf, every time you add new values into the textbox


  danny
0
 
setiawanCommented:
Private Sub Command1_Click()
  Text2.Text = Text2.Text & Now & " " & Text1.Text & vbCrLf
End Sub
0
 
derigoAuthor Commented:
thanks!!!  never knew that existed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.