text box question

B

Brent

I have some code that is combining information contained in a table and
putting it in a text box.
Example.
text1,text2,text3

today I am separating this information with a comma. Is there a way to add
a line between these values instead? The reason I'm doing this is because
my form is already opening as continuous form so using a subform is not an
option. Any help is appreciated.

Proposed Example
Text1

Text2

Text3
 
S

SusanV

Hi Brent,

vbCrLf will insert a line feed:

me.textbox = "text1" & vbCrLF & "text2" & vbCrLf & "text3"
 
B

Bill Edwards

So, why is using a subform not an option?

You can have subforms with continuous forms. Put the subform in the form
footer section of the continuous form.
Another option would be to create a main form; create a continuous form;
create the subform. Place the continuous form and subform inside the main
form as subforms and then link them.
 

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