Counting on reports

R

Robert Sykes

Hello again, I have a report based on a query (qrynewmem) which displays all
the members that have joined in a given month, there are 2 types of members,
Circuit and Elite (memtype). At the top of the report I have text boxes to
count the total number of new members, and the number of members from each
type.

The total works fine, but the total for each membership type doesn't seem to
work, I just get the #Error as a result, I've put the following function
into the control source of two unbound fields:

=DCount("memtype","qrynewmem","memtype = 'Circuit' ")
=DCount("memtype","qrynewmem","memtype = 'Elite' ")

Anyone know what's up with this?

Thanks in advance.

--
Notice of Confidentiality:
This transmission contains information that may be confidential and that may
also be privileged. Unless you are the intended recipient of the message
(or authorized to receive it for the intended recipient), you may not copy,
forward, or otherwise use it, or disclose its contents to anyone else. If
you have received this transmission in error, please notify us immediately
and delete it from your system.
 
D

Duane Hookom

In the report header, you could use control sources of:
=Abs(Sum([memtype] = "Circuit"))
=Abs(Sum([memtype] = "Elite"))
 
R

Robert Sykes

Thank you

Duane Hookom said:
In the report header, you could use control sources of:
=Abs(Sum([memtype] = "Circuit"))
=Abs(Sum([memtype] = "Elite"))


--
Duane Hookom
MS Access MVP
--

Robert Sykes said:
Hello again, I have a report based on a query (qrynewmem) which displays
all
the members that have joined in a given month, there are 2 types of
members,
Circuit and Elite (memtype). At the top of the report I have text boxes to
count the total number of new members, and the number of members from each
type.

The total works fine, but the total for each membership type doesn't seem
to
work, I just get the #Error as a result, I've put the following function
into the control source of two unbound fields:

=DCount("memtype","qrynewmem","memtype = 'Circuit' ")
=DCount("memtype","qrynewmem","memtype = 'Elite' ")

Anyone know what's up with this?

Thanks in advance.

--
Notice of Confidentiality:
This transmission contains information that may be confidential and that
may
also be privileged. Unless you are the intended recipient of the message
(or authorized to receive it for the intended recipient), you may not
copy,
forward, or otherwise use it, or disclose its contents to anyone else. If
you have received this transmission in error, please notify us immediately
and delete it from your system.
 

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

Similar Threads

Dcount...Again 2
Dealing with Null Value's 1
Silly Question 3
Blank Pages 2
Counting multiple memberships 1
Get Sums for 2 DCount fields on report 1
Year in Query 2
Subreport Page Header not showing 2

Top