skipping lines

  • Thread starter Problem from yesterday
  • Start date
P

Problem from yesterday

This is a simple question. Yesterday I needed help with adding date, time and user to a textbox. Today I am wondering if there is a way to make the info skip a line then add the text instead of adding it directly after the first line. The code is as follows

Private Sub Command4_Click(

Notes = Notes & Chr(10) & " " & CurrentUser & " " & " " & Date & " " & " " & Time & " " & " " & [NewNote

End Su

And the output looks like this

admin 08/06/2004 9:23 am test test test admin 08/06/2004 9:24 am test test test admin 08/06/2004 9:25 am test test test

and so, for no matter how long I keep going. Is there a way to make it look like this

admin 08/06/2004 9:23 am
test test tes

admin 08/06/2004 9:24 am
test test tes

admin 08/06/2004 9:25 a
test test tes

Thanks in advance

Denni
 
R

Rick B

I think the CHR(10) is a carriage return. Just put two of them.

Rick B


message This is a simple question. Yesterday I needed help with adding date, time
and user to a textbox. Today I am wondering if there is a way to make the
info skip a line then add the text instead of adding it directly after the
first line. The code is as follows:

Private Sub Command4_Click()

Notes = Notes & Chr(10) & " " & CurrentUser & " " & " " & Date & " " & " " &
Time & " " & " " & [NewNote]

End Sub


And the output looks like this:

admin 08/06/2004 9:23 am test test test admin 08/06/2004 9:24 am test test
test admin 08/06/2004 9:25 am test test test

and so, for no matter how long I keep going. Is there a way to make it look
like this:

admin 08/06/2004 9:23 am
test test test

admin 08/06/2004 9:24 am
test test test

admin 08/06/2004 9:25 am
test test test


Thanks in advance,

Dennis
 
R

Rick B

Hmmmm. That did not work.

I am looking for the right code for a line feed.

Rick B

message This is a simple question. Yesterday I needed help with adding date, time
and user to a textbox. Today I am wondering if there is a way to make the
info skip a line then add the text instead of adding it directly after the
first line. The code is as follows:

Private Sub Command4_Click()

Notes = Notes & Chr(10) & " " & CurrentUser & " " & " " & Date & " " & " " &
Time & " " & " " & [NewNote]

End Sub


And the output looks like this:

admin 08/06/2004 9:23 am test test test admin 08/06/2004 9:24 am test test
test admin 08/06/2004 9:25 am test test test

and so, for no matter how long I keep going. Is there a way to make it look
like this:

admin 08/06/2004 9:23 am
test test test

admin 08/06/2004 9:24 am
test test test

admin 08/06/2004 9:25 am
test test test


Thanks in advance,

Dennis
 
R

Rick B

Chr(13) & Chr(10)

Will insert a line feed. You might want...

Notes = Notes & Chr(13) & Chr(10) & Chr(13) & Chr(10)& CurrentUser & " " & "
" & Date & " " & " " & Time & Chr(13) & Chr(10) &[NewNote]


Rick B





message This is a simple question. Yesterday I needed help with adding date, time
and user to a textbox. Today I am wondering if there is a way to make the
info skip a line then add the text instead of adding it directly after the
first line. The code is as follows:

Private Sub Command4_Click()

Notes = Notes & Chr(10) & " " & CurrentUser & " " & " " & Date & " " & " " &
Time & " " & " " & [NewNote]

End Sub


And the output looks like this:

admin 08/06/2004 9:23 am test test test admin 08/06/2004 9:24 am test test
test admin 08/06/2004 9:25 am test test test

and so, for no matter how long I keep going. Is there a way to make it look
like this:

admin 08/06/2004 9:23 am
test test test

admin 08/06/2004 9:24 am
test test test

admin 08/06/2004 9:25 am
test test test


Thanks in advance,

Dennis
 
R

Rick B

note that you don't need those double spaces as two strings...

Notes = Notes & Chr(13) & Chr(10) & Chr(13) & Chr(10)& CurrentUser & " " &
Date & " " & Time & Chr(13) & Chr(10) &[NewNote]


Rick B




Chr(13) & Chr(10)

Will insert a line feed. You might want...

Notes = Notes & Chr(13) & Chr(10) & Chr(13) & Chr(10)& CurrentUser & " " & "
" & Date & " " & " " & Time & Chr(13) & Chr(10) &[NewNote]


Rick B





message This is a simple question. Yesterday I needed help with adding date, time
and user to a textbox. Today I am wondering if there is a way to make the
info skip a line then add the text instead of adding it directly after the
first line. The code is as follows:

Private Sub Command4_Click()

Notes = Notes & Chr(10) & " " & CurrentUser & " " & " " & Date & " " & " " &
Time & " " & " " & [NewNote]

End Sub


And the output looks like this:

admin 08/06/2004 9:23 am test test test admin 08/06/2004 9:24 am test test
test admin 08/06/2004 9:25 am test test test

and so, for no matter how long I keep going. Is there a way to make it look
like this:

admin 08/06/2004 9:23 am
test test test

admin 08/06/2004 9:24 am
test test test

admin 08/06/2004 9:25 am
test test test


Thanks in advance,

Dennis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top