Hello all
I want to refine my code. I'm printing multiple reports while looping through my list. I have to open and close report for each selected item in the listbox. Is there a way to by pass this ? Thanks
Private Sub cmdPrintAll_Click()
'for each client in the client's list, print the statement
For i = 0 To 1
Me.List0.selected(i) = True
clientSelected = Me.List0.Column(0, i)
DoCmd.OpenReport "Monthly Statement"
DoCmd.Close acReport, "Monthly Statement"
Next i
End Sub
I want to refine my code. I'm printing multiple reports while looping through my list. I have to open and close report for each selected item in the listbox. Is there a way to by pass this ? Thanks
Private Sub cmdPrintAll_Click()
'for each client in the client's list, print the statement
For i = 0 To 1
Me.List0.selected(i) = True
clientSelected = Me.List0.Column(0, i)
DoCmd.OpenReport "Monthly Statement"
DoCmd.Close acReport, "Monthly Statement"
Next i
End Sub