Count issue

ivan_fuzz

Board Regular
Joined
Jan 7, 2005
Messages
63
Does anyone know how to count the number of rows in a query? I tried using the help but it's not helping. Where's this 'Diagram Pane' to right click and select Group By? When I add a table to a query, I can only get the Group By to come up if I click the "Totals" button on the toolbar and that doesn't give you the extra column the help mentions.

1. In the Database window, click Queries under Objects, and then click New on the database window toolbar.
2. Add the table, view, or function you want to summarize in the Diagram pane.
3. Right-click the background of the Diagram pane, then choose Group By from the shortcut menu. The Query Designer adds a Group By column to the grid in the Grid pane.
4. Add the column that you want to count to the Grid pane.
The Query Designer automatically fills the term Group By into the Group By column of the grid.
5. Change Group By in the Group By column to Count.
Note To count only unique values, choose Count Distinct.
I have to be missing something because I know this can't be this difficult.

Thanks in advance.
 

pritcham

Board Regular
Joined
Oct 26, 2005
Messages
128
Hi

The design pane is where the tables appear when you add them to the query (i.e. the top bit of the screen). The way you're doing it (with the Totals button) is the same though. The extra row that appears will be underneath the columns you've selected (above where you usually put the criteria for the selection).

Hope this helps
Martin
 

Forum statistics

Threads
1,078,006
Messages
5,337,693
Members
399,162
Latest member
Sabina

Some videos you may like

This Week's Hot Topics

Top