Re: Counting 3 different fields seperately on a report

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thank you so much for trying to help me, but I can't seem to get it to work.
I created the 'totals query' and put in the criteria Like "X" but when I go
to creat a report with my material query and my totals query (using wizard) I
get an error message that says: 'You've chosen fields from record sources
which the wizard can't connect. You may have chosen fields from a table and a
query based on that table, If so try choosing fields from only the table or
query.'

However, I did not use a table and a query I used fields from two seperate
query's based off the table. Please help.

"Jeff C" wrote:

Open the query builder, place the linked table in the query, insert one of
the fields you wish to count the X's.

click on the button with the summation sign which makes your select query a
totals query.

In the criteria for the field you inserted place: Like "X"

for the summation select Count
--
Jeff C
Live Well .. Be Happy In All You Do


"SLKoelker" wrote:

My database is linked to a spreadsheet in excel (not sure if that is why I
can't get it to work). The three fields are text fields in which I insert an
'X'. These fields are mutually exclusive. If the material was rejected
initially the 'X' is in the rejected column. When I re-submit the material
the 'X' is moved to the pending column. And if it passes the second test the
'X' moves to the accept column. Does this help clarify? Please help.

"Jeff Boyce" wrote:

If you are using a query to get a total, and it gives you a parameter
prompt, often that's Access' way of reminding you that spelling counts!
Access asks you for a value (via a parameter prompt) when it can't find the
object you've named.

Your three fields, are they text fields, into which you have inserted the
letter "X"? Are they True/False fields, that store a "0" and a "-1" (for
Access data), but can be made to display a checkbox, or ...?

How you total up the columns depends on what the columns hold ... you might
need to use "Count" instead of "Sum"!

Also, from your description, it sounds like the three fields are actually
mutually exclusive (i.e., a record can only ever be only one of the three).
If that's the case, then your table is designed more like a spreadsheet than
a relational database table.

If this is true, you could use a single field and store the status
(accepted, rejected, pending) in that field.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"SLKoelker" <SLKoelker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C7F9AC13-AEF7-4026-8412-B14A19E39880@xxxxxxxxxxxxxxxx
Every equation I have tried (that I found on this website) has given me a
'parameter' prompt. What I need is very simple. There are 3 fields,
accepted,
rejected, and pending. I want to count the "X's" in each column to show
totals for each column at the end of the report. can anyone help??



.



Relevant Pages

  • Re: Slow query
    ... > My suggestion would be to make a copy of the query, ... > the parameter "prompt" (in design view you see this in the ... > Jeff Boyce ... >>> Regards ...
    (microsoft.public.access.queries)
  • Re: Query not returning consistent results
    ... Microsoft Access MVP ... Jeff Boyce wrote: ... If the report uses a parameter to tell the query how to run, ... I'm not sure why running the query alone would cause the prompt to show ...
    (microsoft.public.access.reports)
  • Re: Make table from query
    ... to the user to input when they run the make table query. ... "Jeff Boyce" wrote: ... But instead of the date I enter at the prompt, ... FROM tblWMSNEW LEFT JOIN tblPROJFHIST ON tblWMSNEW.PROJECTS_NO = ...
    (microsoft.public.access.queries)
  • Re: Duplicate search
    ... "Jeff Boyce" wrote: ... > You can build a query that includes a prompt in the criterion field, ...
    (microsoft.public.access.queries)
  • Re: running a query by month
    ... Microsoft Office/Access MVP ... when i change it to Monthin the criteria field and run the query ... What i want to know is if there is a similer way to have a prompt come up ... "Jeff Boyce" wrote: ...
    (microsoft.public.access.queries)