A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DCount within a Group



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2010, 09:02 PM posted to microsoft.public.access
Scott Albright[_2_]
external usenet poster
 
Posts: 3
Default DCount within a Group

I have a report that groups students by grade. Within each grade is the
student's name. If the student's parents are divorced, the report will show
the student twice, once for the dad and once for the mom. I need a unique
count(w/o dupes) of the students within each group. I am currently using
DCount but I'm getting the count of the entire school. The DCount is now in
the group on the report, but it doesn't matter where I put it, the count is
the same.
  #2  
Old March 9th, 2010, 10:16 PM posted to microsoft.public.access
J_Goddard via AccessMonster.com
external usenet poster
 
Posts: 221
Default DCount within a Group

You need to use DCount with the appropriate WHERE clause, but without seeing
your code and knowing what your table/query looks like, I can't say more than
that. What is the source of the report - a table or a query?

Please give us more details.

John


Scott Albright wrote:
I have a report that groups students by grade. Within each grade is the
student's name. If the student's parents are divorced, the report will show
the student twice, once for the dad and once for the mom. I need a unique
count(w/o dupes) of the students within each group. I am currently using
DCount but I'm getting the count of the entire school. The DCount is now in
the group on the report, but it doesn't matter where I put it, the count is
the same.


--
John Goddard
Ottawa, ON Canada
jrgoddard at cyberus dot ca

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/201003/1

  #3  
Old March 13th, 2010, 05:33 PM posted to microsoft.public.access
De Jager
external usenet poster
 
Posts: 393
Default DCount within a Group


"Scott Albright" wrote in message
...
I have a report that groups students by grade. Within each grade is the
student's name. If the student's parents are divorced, the report will
show
the student twice, once for the dad and once for the mom. I need a unique
count(w/o dupes) of the students within each group. I am currently using
DCount but I'm getting the count of the entire school. The DCount is now
in
the group on the report, but it doesn't matter where I put it, the count
is
the same.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.