Don't want to count duplicates in Report

G

gumby

I need the duplicates my report, but I don't want to count them. I was
to have a =count([]) and then a =count where is does not count the
duplicates.

Not sure how to do the second one.

David
 
D

Duane Hookom

One method is to create a group header for the field you want a unique
count. Add a text box to the group header:
Name: txtCount
Control Source:=1
Running Sum: Over All
Visible: No

Then in the report footer, add a text box:
Control Source:=txtCount
 
G

gumby

Duane,

Thank you!

What is the reason for why in the second part it would not work in the
page header?

David

Duane said:
One method is to create a group header for the field you want a unique
count. Add a text box to the group header:
Name: txtCount
Control Source:=1
Running Sum: Over All
Visible: No

Then in the report footer, add a text box:
Control Source:=txtCount

--
Duane Hookom
MS Access MVP

gumby said:
I need the duplicates my report, but I don't want to count them. I was
to have a =count([]) and then a =count where is does not count the
duplicates.

Not sure how to do the second one.

David
 
G

gumby

Duane,

Thank you!


What is the reason for why in the second part it would not work in the
Report header?


David


Duane said:
One method is to create a group header for the field you want a unique
count. Add a text box to the group header:
Name: txtCount
Control Source:=1
Running Sum: Over All
Visible: No

Then in the report footer, add a text box:
Control Source:=txtCount

--
Duane Hookom
MS Access MVP

gumby said:
I need the duplicates my report, but I don't want to count them. I was
to have a =count([]) and then a =count where is does not count the
duplicates.

Not sure how to do the second one.

David
 
D

Duane Hookom

You could try it second control in the Page Header but I doubt it would
display a value that is calculated in group header events.

There is another solution that create a totals query similar to your
report's record source. Then do a count of the records in the totals query.
This could be displayed in your page header using DLookup() or DCount() or
something similar.

--
Duane Hookom
MS Access MVP

gumby said:
Duane,

Thank you!

What is the reason for why in the second part it would not work in the
page header?

David

Duane said:
One method is to create a group header for the field you want a unique
count. Add a text box to the group header:
Name: txtCount
Control Source:=1
Running Sum: Over All
Visible: No

Then in the report footer, add a text box:
Control Source:=txtCount

--
Duane Hookom
MS Access MVP

gumby said:
I need the duplicates my report, but I don't want to count them. I was
to have a =count([]) and then a =count where is does not count the
duplicates.

Not sure how to do the second one.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top