|
-
Aug 22nd, 2006, 09:57 AM
#1
Thread Starter
Fanatic Member
Detail section in a detail section
With VB6 DataReport, is it possible to insert another Detail section in a detail section like it's possible to do in Microsoft Access ?
I want to show the content of 2 recordsets in 1 data report. I want to show a list of recipes and in the second detail section, show their ingredients.
Is it possible or not ?
-
Aug 22nd, 2006, 12:53 PM
#2
Thread Starter
Fanatic Member
Re: Detail section in a detail section
Actually I want to add a subreport to a data report in Visual Basic 6, is it possible?
-
Aug 22nd, 2006, 01:29 PM
#3
Re: Detail section in a detail section
You cannot have two detail sections, two recordsets or use Sub-Reports.
The datareport is pretty limited. Basically it only supports showing a list of records from a single recordset or Master/Detail type data in a hierarchical recordset.
I think the only way to do what you want would be to create an in-memory recordset. The recordset would have a single field which you would populate with the report line you want to print. Then just dump the recordset to the datareport - but you could do that with the Printer object just as easily...
Last edited by brucevde; Aug 22nd, 2006 at 01:34 PM.
-
Aug 23rd, 2006, 01:55 AM
#4
Addicted Member
Re: Detail section in a detail section
You can do one thing , this is the only solution without sub report for ur sceanrio.
When u pass the record set to the report , u passs like this for first record set
select '1' RptFlag,............... from table 1
and for second u passs like this
select '2' RptFlag,............... from table 2
now pass these two record set into report and also make group fo field "RptFlag".
But this way it would seems that there are two separate sections.
Thanks and Regards,
Muhammad Abbas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|