F
fdcusa
The Combo Box has (3) columns - Column 3 is what I want here. Instead of
adding the value for each row in the string, it always puts the value of the
*first* row.
Private Sub cmdEmailAll_Click()
Dim itm As Variant
Dim strEmailList As String
' Concatenate elements of Combo Box to one string
For Each itm In Me.cboEmpSelect.Properties
If Nz(Me!cboEmpSelect.Column(2, itm), "") <> "" Then
strEmailList = strEmailList + Me.cboEmpSelect.Column(2, itm) + ";"
End If
Next itm
strEmailList = Left(strEmailList, Len(strEmailList) - 1) ' remove
ending ;
Debug.Print strEmailList
End Sub
adding the value for each row in the string, it always puts the value of the
*first* row.
Private Sub cmdEmailAll_Click()
Dim itm As Variant
Dim strEmailList As String
' Concatenate elements of Combo Box to one string
For Each itm In Me.cboEmpSelect.Properties
If Nz(Me!cboEmpSelect.Column(2, itm), "") <> "" Then
strEmailList = strEmailList + Me.cboEmpSelect.Column(2, itm) + ";"
End If
Next itm
strEmailList = Left(strEmailList, Len(strEmailList) - 1) ' remove
ending ;
Debug.Print strEmailList
End Sub