A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

skipping lines



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 02:36 PM
Problem from yesterday
external usenet poster
 
Posts: n/a
Default skipping lines

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

  #2  
Old June 8th, 2004, 02:41 PM
Rick B
external usenet poster
 
Posts: n/a
Default skipping lines

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

Rick B


"Problem from yesterday" wrote in
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


  #3  
Old June 8th, 2004, 02:54 PM
Rick B
external usenet poster
 
Posts: n/a
Default skipping lines

Hmmmm. That did not work.

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

Rick B

"Problem from yesterday" wrote in
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


  #4  
Old June 8th, 2004, 03:06 PM
Rick B
external usenet poster
 
Posts: n/a
Default skipping lines

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





"Problem from yesterday" wrote in
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


  #5  
Old June 8th, 2004, 03:14 PM
Rick B
external usenet poster
 
Posts: n/a
Default skipping lines

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




"Rick B" wrote in message
...
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





"Problem from yesterday" wrote in
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



  #6  
Old June 9th, 2004, 01:31 AM
rey
external usenet poster
 
Posts: n/a
Default skipping lines

Use this: vbCrLf
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.