Count distinct record

G

Guest

I Have the following record in a report

P1201D
P1201D
P1200N
P1201N

I want to get the distinct count of these record (without duplicate) so the answer of my exemple is distinct count = 3

Thanks
FRED
 
M

Marshall Barton

FRED said:
I Have the following record in a report

P1201D
P1201D
P1200N
P1201N

I want to get the distinct count of these record (without duplicate) so the answer of my exemple is distinct count = 3


I think your best bet is to use a subreport based on a
totals query that calculates the count. It could be
something like:

SELECT Count(*)
FROM table
GROUP BY thefield

Another way is to group the report on the field and use a
counter text box in the group header or footer.
 

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