Carrage Returns

T

Thomas

I have a form that I'm working on that combines several
text fields into a memo field.

Example of VBScript used:

[Field 5] = [Field 1] & [Field 2] & [Field 3] & [Field 4]

Is there any way to include a carrage return so that data
from one of the text fields appears on a new line?
 
M

MikeB

Vb/VBA has a constant for this. vbCrLf. So:
[Field 1] & [Field 2] & vbCrLf & [Field 3] & [Field 4]

would give the contents of [Field 1]:


Line1: [Field 1] & [Field 2]
Line2: [Field 3] & [Field 4]
 
M

misha

try the following:

[Field 5] = [Field 1] & vbcrlf & [Field 2] & vbcrlf &
[Field 3] & vbcrlf & [Field 4]
 

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