Why does this add the text to a new line in the textbox?
Hi guys, I have a text box and for some reason when I run this code
Text2.Text = Text2.Text + field.Text & "'" & " " & statement.Text & " " & "'" & value.Text & "'"
when a command button is clicked it's adding field.Text & "'" & " " & statement.Text & " " & "'" & value.Text & "'" to a new line as apose to the same line.
any ideas why ?
Re: Why does this add the text to a new line in the textbox?
It should only do that if Text2 already included a crlf...
-tg
Re: Why does this add the text to a new line in the textbox?
....... or field.Text starts with a crlf
........or value.Text ends with a crlf (if Text2.Text starts of as null)