Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on Multiple-Detail band report
Message
From
21/12/2006 09:50:33
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01179392
Message ID:
01179550
Views:
8
>>You may be making the same mistake that I keep seeing people make with multiple detail bands. If all you have is one parent record ... and then another table with child records ... you do NOT have a situation for multiple detail bands. What you should be doing is driving the report with the child table and have a relation to the parent table. Create a data group on the field that matches up with the parent. Put all the parent information in the data group header band. Put all the child information in the detail band. No need for a second detail band.
>>
>
>You see, right now, as you suggested, the report can be created without multiple detail bands. But I need to enhance the report and to add another table. Therefore, I will truly have a case for multiple-detail band. Here is what I have and will have:
>1.Main table (Work Order) of one record (actually table has many records, but I need to report on one record only, that's why I use NEXT 1 in the Report form command.
>2.Child table: parts. Related to the Work Order table.
>3.Child table: tasks. Related to the Work Order table.
>Right now, in my initial testing, I only have 1. and 2. But it does not work. I suspect that the cause is NEXT 1. I will test an approach without NEXT 1.
>
>Thank you for your input.

Main table still should go to the header. When you will get 2 child tables then you could have 2 detail bands: one for each child. The purpose of 2 detail bands is to alleviate report design: before we would have to combine both childs in the same cursor (I would do it anyway :)) and use overlapping fields in the same band 'switched' by 'Print When'.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform