Link to home
Start Free TrialLog in
Avatar of jatalven
jatalven

asked on

Quickreport and grouping

I'm working with database table where is for example workers number, name, main contractors number and contact person, subcontractors number and contact person, our contact person etc.

I need report where data is grouped in 4 levels by:
     Our contact person
          Main contractor and contact person
               Subcontractor and contact person
                    Workers data

Can I do this so that data is in one database component or shall I need many components?

I get this almost work with 4 query components but if our contact person have many main contractors, only first one is printed on report and also if main contractor have many subcontractors, only one is printed.

Avatar of kretzschmar
kretzschmar
Flag of Germany image

set the groupbands in your desired order with the expressions you need,
use one query, which collects the data you need, ensure there,
that the query order by clause matches your grouping-scheme

meikl ;-)
Avatar of jatalven
jatalven

ASKER

Hmms, now I have one query where is all the data.

Put I 4 group bands or how?

Expressions is also what I don't understand.
>Put I 4 group bands or how?

yes, four groupbands, or three, if there are no additional details
(Workers data could be a detail)

     Our contact person
          Main contractor and contact person
               Subcontractor and contact person
                    Workers data  <-- Detail?

or

     Our contact person
          Main contractor and contact person
               Subcontractor and contact person
                    Workers data
                         DetailData

>Expressions is also what I don't understand.

Expressions -> means groupExpression -> usually the field on which should be grouped
Alright!

>>Put I 4 group bands or how?
>
>yes, four groupbands, or three, if there are no additional details
>(Workers data could be a detail)
>
>     Our contact person
>          Main contractor and contact person
>               Subcontractor and contact person
>                    Workers data  <-- Detail?

Now everything else is printed rigth but all columns are printed under our first contact person.
ASKER CERTIFIED SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Phiuh!

Oops, to contact person has forgotten wrong dataset. My fault =)

Now it's working just right, just before I begin to modify it but now report is printed in ten seconds, before it takes abaut 15 minutes.

Thanks a lot!!!
glad you got it sorted :-))

good luck again

meikl ;-)