Below is the code that allows me to add multiple names from a listbox to a field on a form.
I have changed the ListBox to a separate form. I am stumped as to how to select the names
from the listbox form and have them appear in a textbox on another form.
The Form name where the ListBox is located is "NamesMeFrm" the ListBox name is "MfgEngList"
The Form Name where the Textbox is located is "ECNDetailFrm" and the
Textbox name is "Engineering_Distribution".
I want to select the names from the listbox on one form and have them appear in the text box on the other
form.
Thanks for any help!
I have changed the ListBox to a separate form. I am stumped as to how to select the names
from the listbox form and have them appear in a textbox on another form.
The Form name where the ListBox is located is "NamesMeFrm" the ListBox name is "MfgEngList"
The Form Name where the Textbox is located is "ECNDetailFrm" and the
Textbox name is "Engineering_Distribution".
I want to select the names from the listbox on one form and have them appear in the text box on the other
form.
Code:
Dim varItem As Variant
Dim strEngineer As String
For Each varItem In Me.MfgEngList.ItemsSelected
strEngineer = strEngineer & Me.MfgEngList.ItemData(varItem) & vbCrLf
Next varItem
strEngineer = Trim(strEngineer)
Me.Engineering_Distribution = strEngineer
Thanks for any help!