Z
Zoe
I have this code which works perfectly to print the reports but I want to
preview them:
Private Sub cmdBkAgtReports_Click()
Dim intItem As Integer
Dim lbo As ListBox
Set lbo = Me.lboPkAgt
For intItem = 0 To lbo.ListCount - 1
Debug.Print lbo.ItemData(intItem)
DoCmd.OpenReport "Monthly Total - Multiple Agents" _
, , , "BkAgt=""" & lbo.ItemData(intItem) & """"
Next
End Sub
Help is appreciated!
preview them:
Private Sub cmdBkAgtReports_Click()
Dim intItem As Integer
Dim lbo As ListBox
Set lbo = Me.lboPkAgt
For intItem = 0 To lbo.ListCount - 1
Debug.Print lbo.ItemData(intItem)
DoCmd.OpenReport "Monthly Total - Multiple Agents" _
, , , "BkAgt=""" & lbo.ItemData(intItem) & """"
Next
End Sub
Help is appreciated!