Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Subreports

Status
Not open for further replies.

rchandr3

Programmer
Jun 16, 2003
244
US
I have this BIG problem standing before me and my deadine:

as I told, I need dynamic display of subreports, two subreports per page and the two can be the same subreport or need not be.

I have pasted the same set of subreports at the top and at the bottom to achieve this. Problem is I cannot suppress one of the two if I want to. If I pass the suppress formula, both of them get displayed or not.

I dont know whether I am clear or not!

Simple words: how can I display selected subreports out of the lot (of subreports) dynamically from vb code with crpt32 ocx?

I was thinking that getsubreporttochange will make only the called subreport to display and all others wont be but that is not the case

Please help me
 
Put all potential subreports into the report, in seperate sections, and then conditionally supress the section containing a subreport, either from your code, or using a parameter.

But my intial reaction is you've overcomplicated the design and the problem. A simpler approach might make life easier.

Why do you need two subreports? Could your data be organised differently to do all you want using groups in the main report.

Editor and Publisher of Crystal Clear
 
hi chelseatech...

if i could suppress, y i need suppress sections, i could do that using suppres subreports itself!

i have ten different kinds of independant reports liked by a single table and i dont know what two subreports will be needed at runtime with biggest drawback is that both can be the same report on a single page!!!!should be complex!

anyhow, i am redesigning the report structure!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top