Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding multiple names to single field on form

Status
Not open for further replies.

netrusher

Technical User
Feb 13, 2005
952
US
I have a subform ECNDetailfrm with a field?? named
Engineering Distribution. When this field is clicked
another form is opened up with the names of the Engineers
that can go in this Engineering Distribution field.
Multiple names can go into this field. This field is for
viewing to show what engineers received the ECN each form
is based on. The code below is the code I have that inserts
each name that is selected to the field. My problem is:
In the table ECNDetailtbl where the Engineering
Distribution
field is located only one name will show
up in the table. How can I get multiple names to show.

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)
  Forms!ECNBCNVIPfrm!ECNDetailfrm![Engineering Distribution] = strEngineer
 
Cancel this post-I did not look good enough.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top