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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Counting Minus Duplicates



 
 
Thread Tools Display Modes
  #1  
Old August 17th, 2004, 02:07 AM
artregdlg
external usenet poster
 
Posts: n/a
Default Counting Minus Duplicates

I have a report where I need to count the number of individuals confined by
ethnicity. In this report I can not count not individual who confined more
than once during a particular time period.

I have the following columns:
LastName, Gender, and DateConfined (along with others that need not be used)

My report shows (Example)

Jones, AA, 10/04/04
Jones, AA, 10/0704
Last, AA. 09/17/04
Last, AA, 10/04/04

All my counts, sums, or abs end up with a total of 4(four).
I need the report to only show 2 (two) counts of ethnicity because I need
not to count the duplicate individuals.

I have removed the duplication of the last name, but counting the LastName
seems to not work either.

I have tried various counts, sums, abs, but still getting the total number
not the total number minus duplications.

Thanks in advance for the help

  #2  
Old August 17th, 2004, 05:04 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

You can create a grouping level with a header (could be very short) on
LastName,... Add a text box to the group header
Name: txtCount
Control Source: =1
Running Sum: Over Report
Then add a text box to the report footer
Control Source: =txtCount

--
Duane Hookom
MS Access MVP


"artregdlg" wrote in message
...
I have a report where I need to count the number of individuals confined

by
ethnicity. In this report I can not count not individual who confined

more
than once during a particular time period.

I have the following columns:
LastName, Gender, and DateConfined (along with others that need not be

used)

My report shows (Example)

Jones, AA, 10/04/04
Jones, AA, 10/0704
Last, AA. 09/17/04
Last, AA, 10/04/04

All my counts, sums, or abs end up with a total of 4(four).
I need the report to only show 2 (two) counts of ethnicity because I need
not to count the duplicate individuals.

I have removed the duplication of the last name, but counting the LastName
seems to not work either.

I have tried various counts, sums, abs, but still getting the total number
not the total number minus duplications.

Thanks in advance for the help



  #3  
Old August 18th, 2004, 11:31 PM
artregdlg
external usenet poster
 
Posts: n/a
Default

I tried your suggestion and I was comming up with a total not subtotals.

Maybe I explained it wrong.
I have LastName, Gender, DateConfined
A, AA, 10/10/97
A, AA, 11/12/97
B, CA, 01/05/97
C, AS, 02/03/98
C, AS, 03/05/98

My report needs to let me know that there are
2(two) AA
1(one) CA
2(two) AS

I can only achieve a complete total of 5(five)Individuals .

Some How I need to group the gender and hide duplicates of last name and
count the number of genders not duplicting the last name.

Hope you can help.

Regina

"Duane Hookom" wrote:

You can create a grouping level with a header (could be very short) on
LastName,... Add a text box to the group header
Name: txtCount
Control Source: =1
Running Sum: Over Report
Then add a text box to the report footer
Control Source: =txtCount

--
Duane Hookom
MS Access MVP


"artregdlg" wrote in message
...
I have a report where I need to count the number of individuals confined

by
ethnicity. In this report I can not count not individual who confined

more
than once during a particular time period.

I have the following columns:
LastName, Gender, and DateConfined (along with others that need not be

used)

My report shows (Example)

Jones, AA, 10/04/04
Jones, AA, 10/0704
Last, AA. 09/17/04
Last, AA, 10/04/04

All my counts, sums, or abs end up with a total of 4(four).
I need the report to only show 2 (two) counts of ethnicity because I need
not to count the duplicate individuals.

I have removed the duplication of the last name, but counting the LastName
seems to not work either.

I have tried various counts, sums, abs, but still getting the total number
not the total number minus duplications.

Thanks in advance for the help




  #4  
Old August 18th, 2004, 11:56 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

Create a totals query or queries that generate your values and base your
report on the new query.
--
Duane Hookom
MS Access MVP


"artregdlg" wrote in message
...
I tried your suggestion and I was comming up with a total not subtotals.

Maybe I explained it wrong.
I have LastName, Gender, DateConfined
A, AA, 10/10/97
A, AA, 11/12/97
B, CA, 01/05/97
C, AS, 02/03/98
C, AS, 03/05/98

My report needs to let me know that there are
2(two) AA
1(one) CA
2(two) AS

I can only achieve a complete total of 5(five)Individuals .

Some How I need to group the gender and hide duplicates of last name and
count the number of genders not duplicting the last name.

Hope you can help.

Regina

"Duane Hookom" wrote:

You can create a grouping level with a header (could be very short) on
LastName,... Add a text box to the group header
Name: txtCount
Control Source: =1
Running Sum: Over Report
Then add a text box to the report footer
Control Source: =txtCount

--
Duane Hookom
MS Access MVP


"artregdlg" wrote in message
...
I have a report where I need to count the number of individuals

confined
by
ethnicity. In this report I can not count not individual who confined

more
than once during a particular time period.

I have the following columns:
LastName, Gender, and DateConfined (along with others that need not be

used)

My report shows (Example)

Jones, AA, 10/04/04
Jones, AA, 10/0704
Last, AA. 09/17/04
Last, AA, 10/04/04

All my counts, sums, or abs end up with a total of 4(four).
I need the report to only show 2 (two) counts of ethnicity because I

need
not to count the duplicate individuals.

I have removed the duplication of the last name, but counting the

LastName
seems to not work either.

I have tried various counts, sums, abs, but still getting the total

number
not the total number minus duplications.

Thanks in advance for the help






  #5  
Old August 24th, 2004, 06:37 AM
artregdlg
external usenet poster
 
Posts: n/a
Default

Duane,
I did as you suggested and I succeeded. I told my boss that when adding the
additional fields (which have duplicates of their own) makes the errors.
thanks for the help.


"Duane Hookom" wrote:

Create a totals query or queries that generate your values and base your
report on the new query.
--
Duane Hookom
MS Access MVP


"artregdlg" wrote in message
...
I tried your suggestion and I was comming up with a total not subtotals.

Maybe I explained it wrong.
I have LastName, Gender, DateConfined
A, AA, 10/10/97
A, AA, 11/12/97
B, CA, 01/05/97
C, AS, 02/03/98
C, AS, 03/05/98

My report needs to let me know that there are
2(two) AA
1(one) CA
2(two) AS

I can only achieve a complete total of 5(five)Individuals .

Some How I need to group the gender and hide duplicates of last name and
count the number of genders not duplicting the last name.

Hope you can help.

Regina

"Duane Hookom" wrote:

You can create a grouping level with a header (could be very short) on
LastName,... Add a text box to the group header
Name: txtCount
Control Source: =1
Running Sum: Over Report
Then add a text box to the report footer
Control Source: =txtCount

--
Duane Hookom
MS Access MVP


"artregdlg" wrote in message
...
I have a report where I need to count the number of individuals

confined
by
ethnicity. In this report I can not count not individual who confined
more
than once during a particular time period.

I have the following columns:
LastName, Gender, and DateConfined (along with others that need not be
used)

My report shows (Example)

Jones, AA, 10/04/04
Jones, AA, 10/0704
Last, AA. 09/17/04
Last, AA, 10/04/04

All my counts, sums, or abs end up with a total of 4(four).
I need the report to only show 2 (two) counts of ethnicity because I

need
not to count the duplicate individuals.

I have removed the duplication of the last name, but counting the

LastName
seems to not work either.

I have tried various counts, sums, abs, but still getting the total

number
not the total number minus duplications.

Thanks in advance for the help







 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting duplicates\Frequency of duplicates A.D. Worksheet Functions 3 June 30th, 2004 04:59 PM
Text String Duplicates Frank Kabel Worksheet Functions 0 February 20th, 2004 06:56 PM
Formula Calculating Minus Values Russ Worksheet Functions 2 October 6th, 2003 03:06 PM
Counting Names in a column jcarlon Worksheet Functions 3 October 2nd, 2003 03:47 PM


All times are GMT +1. The time now is 07:01 AM.


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