RichWilson
Technical User
Help Please. I am trying to display previews of multiple instances of a Report named "rpt_parts_sheet".
My code below seems like it's going to work; it starts to pull up the previews but then it gives an error something like, there was a problem retrieving the printer information...
I just want it to pull up the previews so they can be viewed on the screen and selectively printed if the user wants.
DoCmds with acviewpreview does exactly what I want, but I can not seem to open multiple instances with that method.
If I need to let it retrieve printer information, is there anyway to just let it use the user default system printer?
Thanks for any help anyone can give.
My code as follows...
Private Sub Parts_Sheet_Click()
Dim agroup(2) As Report_rpt_parts_sheet
Dim z As Long
For z = 0 To 1
Set agroup(z) = New Report_rpt_parts_sheet
Next z
With agroup(0)
.Caption = "Requested Group"
.Filter = "gm_group_no = '" & Combo18 & "'"
.FilterOn = True
.Visible = True
End With
With agroup(1)
.Caption = "First Related Group"
.Filter = "gm_group_no = '" & Combo18 & "'"
.FilterOn = True
.Visible = True
End With
End Sub
My code below seems like it's going to work; it starts to pull up the previews but then it gives an error something like, there was a problem retrieving the printer information...
I just want it to pull up the previews so they can be viewed on the screen and selectively printed if the user wants.
DoCmds with acviewpreview does exactly what I want, but I can not seem to open multiple instances with that method.
If I need to let it retrieve printer information, is there anyway to just let it use the user default system printer?
Thanks for any help anyone can give.
My code as follows...
Private Sub Parts_Sheet_Click()
Dim agroup(2) As Report_rpt_parts_sheet
Dim z As Long
For z = 0 To 1
Set agroup(z) = New Report_rpt_parts_sheet
Next z
With agroup(0)
.Caption = "Requested Group"
.Filter = "gm_group_no = '" & Combo18 & "'"
.FilterOn = True
.Visible = True
End With
With agroup(1)
.Caption = "First Related Group"
.Filter = "gm_group_no = '" & Combo18 & "'"
.FilterOn = True
.Visible = True
End With
End Sub