Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Preview CR Files
One of yhe ways would be to create a public sub/function that will receive all the info that you require for eport to be prinetd (like report name, recordsource, etc). Then in Select Case statement you will make new instance of your reportt like
Select Case rptName
Case "Oz"
Set rpt = New rptOz
Case "Opj"
Set rpt = New rptOpj
Case "Od"
Set rpt = New rptOd
Case "Od1"
Set rpt = New rptOd1
Case "Rek"
Set rpt = New rptRek
Case "ZbirniOz"
Set rpt = New rptOz
Case "Bank"
Set rpt = New rptBank
Case "Nalog"
Set rpt = New rptPay
End Select |
This is due to most of the report properties are the same for all reports you print.
____________________________
If you find the answer helpful, please mark this topic as solved.
|