A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count query



 
 
Thread Tools Display Modes
  #1  
Old March 8th, 2010, 06:58 AM posted to microsoft.public.access.queries
jamccarley
external usenet poster
 
Posts: 54
Default Count query

How would I set up this query? All I want to do is count the number of errors
on a certain cell in our machining process. I have a [Date] field, [Cell 1],
[Cell 2] all the way through [Cell 7]. I want a daily number of errors and
then an accumulitive number every day. I am then going to have it graph this
data.

Thanks
Joshua McCarley
  #2  
Old March 8th, 2010, 02:40 PM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Count query

Are you sure you want to count them rather than sum them? If you actually
have field names like [Cell 1], [Cell 2],... you might consider normalizing
your table structure.

Can you provide some sample records and how you would like them to appear in
a query?

--
Duane Hookom
Microsoft Access MVP


"jamccarley" wrote:

How would I set up this query? All I want to do is count the number of errors
on a certain cell in our machining process. I have a [Date] field, [Cell 1],
[Cell 2] all the way through [Cell 7]. I want a daily number of errors and
then an accumulitive number every day. I am then going to have it graph this
data.

Thanks
Joshua McCarley

  #3  
Old March 9th, 2010, 04:10 AM posted to microsoft.public.access.queries
jamccarley
external usenet poster
 
Posts: 54
Default Count query

I have tried two different versions. I set up just a "Cell" field and put the
cell number in it, but when I use sum it adds the cell number together. I
then set up 7 different yes no fields for them to pick the cell number. I
have the query to where it counts the errors, but not where it gives an
accumulative total every day




"Duane Hookom" wrote:

Are you sure you want to count them rather than sum them? If you actually
have field names like [Cell 1], [Cell 2],... you might consider normalizing
your table structure.

Can you provide some sample records and how you would like them to appear in
a query?

--
Duane Hookom
Microsoft Access MVP


"jamccarley" wrote:

How would I set up this query? All I want to do is count the number of errors
on a certain cell in our machining process. I have a [Date] field, [Cell 1],
[Cell 2] all the way through [Cell 7]. I want a daily number of errors and
then an accumulitive number every day. I am then going to have it graph this
data.

Thanks
Joshua McCarley

  #4  
Old March 9th, 2010, 05:20 AM posted to microsoft.public.access.queries
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default Count query

IMO, I would not use 7 different yes/no fields. The Cell value should be
selected from a drop down in a single field.

If your table structure is correct, you should only need a totals query to
count the records and group by the Cell field.

--
Duane Hookom
MS Access MVP


"jamccarley" wrote in message
...
I have tried two different versions. I set up just a "Cell" field and put
the
cell number in it, but when I use sum it adds the cell number together. I
then set up 7 different yes no fields for them to pick the cell number. I
have the query to where it counts the errors, but not where it gives an
accumulative total every day




"Duane Hookom" wrote:

Are you sure you want to count them rather than sum them? If you actually
have field names like [Cell 1], [Cell 2],... you might consider
normalizing
your table structure.

Can you provide some sample records and how you would like them to appear
in
a query?

--
Duane Hookom
Microsoft Access MVP


"jamccarley" wrote:

How would I set up this query? All I want to do is count the number of
errors
on a certain cell in our machining process. I have a [Date] field,
[Cell 1],
[Cell 2] all the way through [Cell 7]. I want a daily number of errors
and
then an accumulitive number every day. I am then going to have it graph
this
data.

Thanks
Joshua McCarley


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.