Carriage return, line feed wont come back
When a user selects an item in list box 1 and transfers it to list box 2 a corresponding cost should be displayed in a text box. The carriage return/line feed won't work. Consequently each cost is replaced by the next vlaue.
[229 byte] By [
wisgro] at [2007-11-11 8:16:59]

# 1 Re: Carriage return, line feed wont come back
I assume that you're assigning the desired value to the textbox's .Text property:
txtBox.Text = "new value"
This replaces the existing text in the textbox with the new value. To add text to the textbox rather than replace it, you may use string concatenation:
txtBox.Text = txtBox.Text & vbCrLf & "new value"
You may also use the .SelStart and .SelText properties to insert text at a desired location. The following code, for example, adds "new value" to the end of the existing text:
With txtBox
' Set insertion point to end of text
.SelStart = Len(.Text)
' Insert new text
.SelText = vbCrLf & "new value"
End With
P.S. -- For future reference, it's better to include the specific lines of code with which you're having difficulty in the body of your message, rather than including your project as an attachment. Few people are willing to download and debug your entire project, but many will troubleshoot a few lines of code.