Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 23rd, 2004, 05:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default Report problem in group by

I prepared the report in access and I use group by assignto.acontract
Access generate the following query in report


SELECT assignto.empno, assignto.aposit, assignto.astrdate, assignto.aenddate, assignto.acontract, assignto.contractno, position.rec_id
FROM position INNER JOIN assignto ON position.aposit = assignto.aposit;

but above query (report) don't show all records with respective to his group by.

in the table assingto.acontract have 4 records but above query display 2 records.
same like other acontract don't show all records why ?
records are displaying less and more, it is not show acquarate records from the table. why ?
data in the table like this.

acontract contractno
---------- ---------
2016 221
2016 2002
2016 229
2016 282
2015 284
2015 2002
...
and so on..

acontract=2016 have four records it should be display in report
like this

acontract 2016
----------------
221
2002
229
282

please help how can dislay full records in access by using
group by clause

Mateen




 
Old May 23rd, 2004, 09:52 AM
Authorized User
 
Join Date: May 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you checked the original sources of your data?

Is is possible that the report is built on a query that is filetered?

Could the the report source query be built on another query or string of queries that have a filter on one of them?

Even if the report is built on a table or a query, is it possible that the report porperties itself has filtering turned on and there is a filter spec included there?
 
Old May 23rd, 2004, 03:41 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

there is a difference between group by done by query
and grouping done with any reporting tool...
what is the reporting tool you are using and how do you adjust the grouping in the report???

Ahmed Ali
Software Developer
 
Old May 24th, 2004, 12:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for response.

thanks for response.
Yes I check the origional source of data in the table.
in the table, acontract have 4 records, hence
acontract group should be display 4 records.

I have three table, ie
assignto table fields
--------------------
acontract varchar
contractno varchar
aposit varchar
.....

employees table fields
------------------------
empno varchar
name varchar
......

position table fields
----------------------------
rec_id numeric
position varchar



I want to use group by in assignto table and on acontract field
so that each group data display separately.

I am not sure what internal property access use to filter the data.

Regards.

Mateen


Quote:
quote:Originally posted by Bob Hansen
 Have you checked the original sources of your data?

Is is possible that the report is built on a query that is filetered?

Could the the report source query be built on another query or string of queries that have a filter on one of them?

Even if the report is built on a table or a query, is it possible that the report porperties itself has filtering turned on and there is a filter spec included there?





Similar Threads
Thread Thread Starter Forum Replies Last Post
"Group by" problem dani1 XSLT 2 October 30th, 2008 03:21 PM
Change group at run time in Crystal Report 9.0 by priyank Beginning VB 6 0 January 6th, 2006 06:11 AM
Group total in a report tsimsha Classic ASP Databases 1 February 28th, 2005 05:40 PM
Group by in Access Report mateenmohd Access 0 February 9th, 2004 02:17 AM
group header in data report nebujacob2000 VB How-To 1 January 12th, 2004 04:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.