I have a simple form that passes the text from a single textbox (textbox11) in the form to a single textbox in a report (for printing). I need the text (which is delimited by a space) to display on separate lines in the report text box. I think I need to use the split function to do so but I can't seem to code for the carriage return. I've tried VbNewLine, and Chr(13). Should I split the text and create the multi line textbox in the form before it is passed to the report or should I split the text after the report opens?
(y is text from the form)
Me.Textbox11.SetFocus
Me.Textbox11.Text = y
Split(textbox11), VbNewLine
DoCmd.OpenReport "Test report", acViewPreview, , , acWindowNormal
Not sure what to do.
thanks
(y is text from the form)
Me.Textbox11.SetFocus
Me.Textbox11.Text = y
Split(textbox11), VbNewLine
DoCmd.OpenReport "Test report", acViewPreview, , , acWindowNormal
Not sure what to do.
thanks