Trying to put a Time/Date stamp string into a box. When the appropriate button is clicked, it should put the stamp onto a new line. Here's what I have:
Private Sub cmdTimeDatePD_Click()
If txtProblemDescription.Text = "" Then
txtProblemDescription.Text = Date + Time
Else
txtProblemDescription.Text = txtProblemDescription.Text + vbCrLf & Date + Time
End Sub
Here's the output after implementing the command several times:
||9/14/2001 11:01:15 AM||9/14/2001 11:01:16 AM
Not
9/14/2001 11:01:15 AM
9/14/2001 11:01:16 AM
What am I doing wrong?
Private Sub cmdTimeDatePD_Click()
If txtProblemDescription.Text = "" Then
txtProblemDescription.Text = Date + Time
Else
txtProblemDescription.Text = txtProblemDescription.Text + vbCrLf & Date + Time
End Sub
Here's the output after implementing the command several times:
||9/14/2001 11:01:15 AM||9/14/2001 11:01:16 AM
Not
9/14/2001 11:01:15 AM
9/14/2001 11:01:16 AM
What am I doing wrong?