How to programatically add an existing report to a report (as sub)

E

Elijah

I have a report that I want to add as a sub report

In my main report's "On Open" event I want to do something like this:

Private Sub Report_Open(Cancel As Integer)

Dim I as Integer
For i = 0 to X

'Insert my subreport (which already exists)
'Add a page break.

Next

End Sub

I've looked at CreateReportControl and CreateReport respectively- but
I am not wanting to programatically create the entire report, I just
want to add X copies of the same report (and pass them a single
Integer value as the DB parameter EG "i")

Is this possible?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top