This is probably a very easy question to answer:
I have been outputting some text to a message box, similar to the following:
Which works fine. I tried outputting the same string (strOutput) in a text box on a form, i.e.:
The problem is that rather than creating new lines using chr(10), small boxes appear.
Does anyone know an equivalent to chr(10) that will work when sending a string to a text box?
I have been outputting some text to a message box, similar to the following:
Code:
strOutput = "---" & Chr(10) & Chr(10) strOutput = strOutput & "VAR:" & AddTabs(1) & Format(rsVar![VAR], "currency") strOutput = strOutput & Chr(10) & Chr(10) strOutput = strOutput & "Position Value:" & AddTabs(1) & Format(rsVar![ValuePosition], "currency") & Chr(10) strOutput = strOutput & "Position Risk:" & AddTabs(1) & Format(rsVar![valueRisk], "currency") & Chr(10) msgbox(strOutput)
Code:
txtBox.caption = strOutput
Does anyone know an equivalent to chr(10) that will work when sending a string to a text box?
Comment