Solved

Quickreport and grouping

Posted on 2004-04-21
7
391 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 94
delphi custom sort exception 6 137
Run video youtube webbrowse 10 58
Adoquery sql  left join does not work 25 80
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now