tcadieux
06-06-2008, 05:12 PM
Using the below code, I continually get 1 for the value, when I know that each field has a unique value?
For Each Item In lbDist_list.Items
If Item.Selected Then
'Store the ID of the DisttributionList picked
iDistListID = lbDist_list.SelectedValue
'Send value to the Sub to create Relations
CreateAssociatedGroupsDistListEntry(iRecordId, iGroupNameID, iDistListID)
End If
Next 'i
For Each Item In lbDist_list.Items
If Item.Selected Then
'Store the ID of the DisttributionList picked
iDistListID = lbDist_list.SelectedValue
'Send value to the Sub to create Relations
CreateAssociatedGroupsDistListEntry(iRecordId, iGroupNameID, iDistListID)
End If
Next 'i