English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am using access to compare two tables. It shows 5 pieces of information, date, first name, last name, case and status. There is 8 different status'.Is there a way to total each status in a table so I dont have to count them as there is over a few 100 cases each day in this report?

2006-12-19 06:41:08 · 3 answers · asked by decapitated88 1 in Computers & Internet Programming & Design

There is 8 different status'. A B C D E F G H but there is multiple. So like 50 As 90 Bs etc. Can I add them up in a query to show it on the table.

2006-12-19 06:49:08 · update #1

3 answers

In queries, create a new query in design view

Switch to SQL View

Enter this:

SELECT COUNT(column1) AS column1_total, COUNT(column2) AS column2_total, COUNT(column3) AS column3_total FROM tablename GROUP BY column1, column2, column3


In the SQL statement above, column1, column2 and column2 are the names of fields in your Access table; tablename is the name of your access table.

2006-12-19 07:36:17 · answer #1 · answered by Anonymous · 1 0

While in query design view, pull down the View menu and select Totals. A "Total" row will appear in the query designer. In that row, pick "Group By" for the status, and "Count" for any other. You only need one other column to count; generally it can be any other column, but you should pick one that will never have NULL values, because they won't be counted.

2006-12-19 14:47:24 · answer #2 · answered by hslayer 3 · 1 0

Not quite sure I understand, but would this work?

select status, count(*) from table group by status

2006-12-19 14:44:59 · answer #3 · answered by BigRez 6 · 0 0

fedest.com, questions and answers