Solved

Time/Date Stamp

Posted on 2000-04-25
3
140 Views
Last Modified: 2010-05-02
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
Comment
Question by:derigo
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
setiawan earned 5 total points
ID: 2749881
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
 
LVL 6

Expert Comment

by:setiawan
ID: 2749882
Private Sub Command1_Click()
  Text2.Text = Text2.Text & Now & " " & Text1.Text & vbCrLf
End Sub
0
 

Author Comment

by:derigo
ID: 2750078
thanks!!!  never knew that existed.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now