I would like to produce a series of reports - pulled from a multiselect ListBox.
The issue is - the process completes but only the last report of the selections is shown (as expected).
Any thoughts as to how I might be able to produce this batch process into a "bundled multi paged" final report?
Here's the current code pulling the report:
The issue is - the process completes but only the last report of the selections is shown (as expected).
Any thoughts as to how I might be able to produce this batch process into a "bundled multi paged" final report?
Here's the current code pulling the report:
Code:
Private Sub Command0_Click()
If IsNull(Forms!frmMenu!Combo14) Then GoTo ErrHandler
Dim lst As ListBox
Dim varItem As Variant
Dim strSql As String
Dim i As Single
Dim Count As Single
Set lst = Me!List6
Count = lst.ItemsSelected.Count
If Count = 0 Then
MsgBox "-- Please select the market(s) to process --", vbExclamation, "No Data Selected"
Else
For i = 0 To Count - 1
For Each varItem In lst.ItemsSelected
Call GoldenWave(lst.Column(0, varItem), lst.Column(1, varItem), lst.Column(2, varItem), lst.Column(3, varItem), lst.Column(4, varItem), lst.Column(6, varItem), lst.Column(7, varItem))
Next varItem
Call PrintFutReport
Next i
End If
ErrHandler:
If IsNull(Forms!frmMenu!Combo14) Then
strMsg = "Please pick a report first."
strTitle = "Report Selection Required"
intStyle = vbOKOnly
MsgBox strMsg, intStyle, strTitle
Cancel = True
End If
ExitHandler:
End Sub