• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

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?
0
derigo
Asked:
derigo
  • 2
1 Solution
 
setiawanCommented:
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now