Count Unique Records

B

Berny

I have a report that has a field that has different values and I want a
summary count of one of those values.

I'm trying to use a text box =count([StatusCode])

What is the syntax for counting status codes of 12
 
B

Berny

This does not appear to work

What if the code is a text field instead of a numerical field?

I'm getting the following error:

"Aggregate functions are only allowed on output fields of the Record Source"

Duane Hookom said:
Set your control source to:
=Sum(Abs([StatusCode] = 12))

--
Duane Hookom
MS Access MVP
--

Berny said:
I have a report that has a field that has different values and I want a
summary count of one of those values.

I'm trying to use a text box =count([StatusCode])

What is the syntax for counting status codes of 12
 
D

Duane Hookom

Is [StatusCode] a field in your report's record source? How would you
determine if the record should be counted or not?

--
Duane Hookom
MS Access MVP


Berny said:
This does not appear to work

What if the code is a text field instead of a numerical field?

I'm getting the following error:

"Aggregate functions are only allowed on output fields of the Record
Source"

Duane Hookom said:
Set your control source to:
=Sum(Abs([StatusCode] = 12))

--
Duane Hookom
MS Access MVP
--

Berny said:
I have a report that has a field that has different values and I want a
summary count of one of those values.

I'm trying to use a text box =count([StatusCode])

What is the syntax for counting status codes of 12
 

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