E
Eka1618
Hello,
I am not sure why I cannot reference the selected column in either of my
list boxes. The following code works well on a form... I thought I had it
working well on the report, but it is saying that the column is Null. Only
one row is selected in these list boxes when it is displayed on a report.
My code is written as if multiple items could be selected, but I'm just not
sure why it would make a difference in this case:
Dim teesEmail, torsEmail As String, varItem As Variant
Dim request As Long
DoCmd.Maximize
For Each varItem In Me.lboRequestee.ItemsSelected
teesEmail = teesEmail & Me.lboRequestee.Column(2, varItem)
Next varItem
For Each varItem In Me.lboRequestor.ItemsSelected
torsEmail = torsEmail & lboRequestor.Column(2, varItem)
Next varItem
I have looked at many examples and they all seem to match mine. If anyone
has any suggestions, please let me know, Thank you!
I am not sure why I cannot reference the selected column in either of my
list boxes. The following code works well on a form... I thought I had it
working well on the report, but it is saying that the column is Null. Only
one row is selected in these list boxes when it is displayed on a report.
My code is written as if multiple items could be selected, but I'm just not
sure why it would make a difference in this case:
Dim teesEmail, torsEmail As String, varItem As Variant
Dim request As Long
DoCmd.Maximize
For Each varItem In Me.lboRequestee.ItemsSelected
teesEmail = teesEmail & Me.lboRequestee.Column(2, varItem)
Next varItem
For Each varItem In Me.lboRequestor.ItemsSelected
torsEmail = torsEmail & lboRequestor.Column(2, varItem)
Next varItem
I have looked at many examples and they all seem to match mine. If anyone
has any suggestions, please let me know, Thank you!