Solved

Quickreport and grouping

Posted on 2004-04-21
7
422 Views
Last Modified: 2013-11-22
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.

0
Comment
Question by:jatalven
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10876191
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 ;-)
0
 

Author Comment

by:jatalven
ID: 10876247
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.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10876275
>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
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jatalven
ID: 10876474
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.
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
ID: 10876510
hmm,

a layout

+-------- Groupband1 - GroupExpression = Dataset.ContactPerson -
| [Field] [Field] ....
+-------- Groupband2 - GroupExpression = Dataset.MainContractor -
| [Field] [Field] ....
+-------- Groupband3 - GroupExpression = Dataset.SubContractor -
| [Field] [Field] ....
+-------- DetailBand - ---------------------------------------------------
| [Field] [Field] ....

>but all columns are printed under our first contact person.
did you sort your query properly?

meikl ;-)


0
 

Author Comment

by:jatalven
ID: 10876568
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!!!
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10876627
glad you got it sorted :-))

good luck again

meikl ;-)
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month6 days, 7 hours left to enroll

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question