The data are shown repeated
I have 3 tables and this is my query
<!--sql--><div class='sqltop'>SQL</div><div class='sqlmain'><!--sql1--><span style='color:blue;font-weight:bold'>SELECT</span> <span style='color:blue'>SUM</span>(FeeAmount) Total, C.Description, D.Number, D.PrintDate, D.TotDuty, D.TotTax,
S.Importer, S.Broker, S.EstDuty, S.EstTax, M.Entry, M.Source
<span style='color:green'>FROM</span> <span style='color:orange'>DailyStatements</span> <span style='color:orange'>D
</span><span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>Shipment_ABI</span> <span style='color:orange'>S</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> S.Number)
<span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>ABI_STMT_MSG</span> <span style='color:orange'>M</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> M.Number)
<span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>Shipment_ABIFees</span> <span style='color:orange'>F</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> F.Number)
<span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>BASICO.dbo.Codes</span> <span style='color:orange'>C</span> <span style='color:blue'>ON</span> (C.Code<span style='color:orange'>=</span>F.FeeCode)
<span style='color:green'>WHERE</span> D.Number <span style='color:orange'><</span><span style='color:orange'>></span> <span style='color:red'>'' <span style='color:blue'>AND</span> D.Number <span style='color:orange'>=</span>'</span>1709258096'
GROUP BY F.FeeCode, C.Description, D.Number, D.PrintDate, D.TotDuty, D.TotTax,
S.Importer, S.Broker, S.EstDuty, S.EstTax, M.Entry, M.Source
<span style='color:green'>ORDER BY</span> Number <!--sql2--></div><!--sql3-->
it shows me
[img][/img] http://cid-f2aaf9cbf65dd5ae.skydrive.live....ic/consulta.gif
My report is bad
[img][/img] http://cid-f2aaf9cbf65dd5ae.skydrive.live....lic/report1.gif
This is true
[img][/img] http://cid-f2aaf9cbf65dd5ae.skydrive.live....lic/report2.gif
My report design
[img][/img] http://cid-f2aaf9cbf65dd5ae.skydrive.live....lic/report3.gif
Now, if I show more than one records
Is bad
Page 1
1?? Record
2?? Record
3?? ...
Page 2
1?? Record
2?? Record
3?? ...
Page 3
1?? Record
2?? Record
3?? ...
I want to look like this
Is true
1?? Record
Page 1
Page 2
Page 3
2?? Record
Page 1
Page 2
Page 3
3?? Record
...
What am I doing wrong?
What is my error?
pd1: How do I show the pictures and not the link?
pd2: Sorry about my english, I speak spanish
<!--sql--><div class='sqltop'>SQL</div><div class='sqlmain'><!--sql1--><span style='color:blue;font-weight:bold'>SELECT</span> <span style='color:blue'>SUM</span>(FeeAmount) Total, C.Description, D.Number, D.PrintDate, D.TotDuty, D.TotTax,
S.Importer, S.Broker, S.EstDuty, S.EstTax, M.Entry, M.Source
<span style='color:green'>FROM</span> <span style='color:orange'>DailyStatements</span> <span style='color:orange'>D
</span><span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>Shipment_ABI</span> <span style='color:orange'>S</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> S.Number)
<span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>ABI_STMT_MSG</span> <span style='color:orange'>M</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> M.Number)
<span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>Shipment_ABIFees</span> <span style='color:orange'>F</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> F.Number)
<span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>BASICO.dbo.Codes</span> <span style='color:orange'>C</span> <span style='color:blue'>ON</span> (C.Code<span style='color:orange'>=</span>F.FeeCode)
<span style='color:green'>WHERE</span> D.Number <span style='color:orange'><</span><span style='color:orange'>></span> <span style='color:red'>'' <span style='color:blue'>AND</span> D.Number <span style='color:orange'>=</span>'</span>1709258096'
GROUP BY F.FeeCode, C.Description, D.Number, D.PrintDate, D.TotDuty, D.TotTax,
S.Importer, S.Broker, S.EstDuty, S.EstTax, M.Entry, M.Source
<span style='color:green'>ORDER BY</span> Number <!--sql2--></div><!--sql3-->
it shows me
[img][/img] http://cid-f2aaf9cbf65dd5ae.skydrive.live....ic/consulta.gif
My report is bad
[img][/img] http://cid-f2aaf9cbf65dd5ae.skydrive.live....lic/report1.gif
This is true
[img][/img] http://cid-f2aaf9cbf65dd5ae.skydrive.live....lic/report2.gif
My report design
[img][/img] http://cid-f2aaf9cbf65dd5ae.skydrive.live....lic/report3.gif
Now, if I show more than one records
Is bad
Page 1
1?? Record
2?? Record
3?? ...
Page 2
1?? Record
2?? Record
3?? ...
Page 3
1?? Record
2?? Record
3?? ...
I want to look like this
Is true
1?? Record
Page 1
Page 2
Page 3
2?? Record
Page 1
Page 2
Page 3
3?? Record
...
What am I doing wrong?
What is my error?
pd1: How do I show the pictures and not the link?
pd2: Sorry about my english, I speak spanish
Comments
The easier solution would be to group it in a way that it will show one record per line as you want it in the report, and all should be fine.
Your report will show one line per record, so if your query is returning repeated data, it will only reflect that, unless you change your report.
I'm afraid I don't have enough time to help you more than that, I hope it gives you some ideas.
<!--sql--><div class='sqltop'>SQL</div><div class='sqlmain'><!--sql1--><span style='color:blue;font-weight:bold'>SELECT</span> D.Number, D.PrintDate, D.TotDuty, D.TotTax, S.Importer, S.Broker, S.EstDuty, S.EstiTax,
<span style='color:green'>FROM</span> <span style='color:orange'>DailyStatements</span> <span style='color:orange'>D
</span><span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>Shipment_ABI</span> <span style='color:orange'>S</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> S.Number)
<span style='color:green'>WHERE</span> D.Number <span style='color:orange'>=</span><span style='color:red'>'170925'</span>
<span style='color:green'>ORDER BY</span> Number <!--sql2--></div><!--sql3-->
<!--sql--><div class='sqltop'>SQL</div><div class='sqlmain'><!--sql1--><span style='color:blue;font-weight:bold'>SELECT</span> <span style='color:blue'>SUM</span>(FeeAmount) Total, C.Description, D.Number, D.PrintDate, D.TotDuty, D.TotTax
<span style='color:green'>FROM</span> <span style='color:orange'>DailyStatements</span> <span style='color:orange'>D
</span><span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>Shipment_ABIFees</span> <span style='color:orange'>F</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> F.Number)
<span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>BASICO.dbo.Codes</span> <span style='color:orange'>C</span> <span style='color:blue'>ON</span> (C.Code<span style='color:orange'>=</span>F.FeeCode)
<span style='color:green'>WHERE</span> D.Number <span style='color:orange'>=</span><span style='color:red'>'170925'</span>
GROUP BY F.FeeCode, C.Description, D.Number, D.PrintDate, D.TotDuty, D.TotTax,
<span style='color:green'>ORDER BY</span> Number <!--sql2--></div><!--sql3-->
<!--sql--><div class='sqltop'>SQL</div><div class='sqlmain'><!--sql1--><span style='color:blue;font-weight:bold'>SELECT</span> D.Number, D.PrintDate, D.TotDuty, D.TotTax, M.Entry, M.Source
<span style='color:green'>FROM</span> <span style='color:orange'>DailyStatements</span> <span style='color:orange'>D
</span><span style='color:green'>LEFT</span> <span style='color:green'>JOIN</span> <span style='color:orange'>ABI_STMT_MSG</span> <span style='color:orange'>M</span> <span style='color:blue'>ON</span> (D.Number <span style='color:orange'>=</span> M.Number)
<span style='color:green'>WHERE</span> D.Number <span style='color:orange'>=</span><span style='color:red'>'170925'</span>
<span style='color:green'>ORDER BY</span> Number <!--sql2--></div><!--sql3-->
This works fine, but changing the WHERE and pass many records
This shows
Page 1
1?? record
2?? record
...
Page 2
1?? record
2?? record
...
Page 3
1?? record
2?? record
...
And I have to display the report like this:
1?? record
Page 1
Page 2
Page 3
2?? record
Page 1
Page 2
Page 3
so many records
or are you trying to group one mdband like the nested groups demo report in the main demo,
if this is the case then connect your dataset to the band not the page, also
just use the orderby clause in the query to get the data ordered by the conditions of the headers.