Results 1 to 4 of 4

Thread: Detail section in a detail section

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    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 ?

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    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?

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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.

  4. #4
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    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
  •  



Click Here to Expand Forum to Full Width