Carrage Returns

  • Thread starter Thread starter Thomas
  • Start date Start date
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?
 
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]
 
try the following:

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