microsoft access training course - access calculating records

Forum home » Delegate support and help forum » Microsoft Access Training and help » microsoft access training course - Access - calculating records

microsoft access training course - Access - calculating records

resolvedResolved · Low Priority · Version Standard

Adrienne has attended:
Access Introduction course

Access - calculating records

Hi

I have a table with 1000 records of approx 50 cities. Is there a way to make a query of 50 records (1 per city) in total with an extra column reading the quantity of records (i.e. approx 20 per record)?

I hope this makes sense.

Regards

Adrienne

Edited on Fri 23 Nov 2007, 15:11

RE: Access - calculating records

Hi Adrienne

Yes there is.

I assumen the field holding the ciy names is called "City"

Create a new query in design view, with the "City" fiels as the 1st item on the query.

In the next query field place another of the table's fields (NB you could use the "City" field again)

On the toolbar click the Totals button. (The "E" AutoSum symbol)
An new line Total appears in the design view

Leave the 1st item's value as Group By but change the other's value to Count

When the query is run you will have a table view, with a list of all the individual cities with the number of records for each appearing in the 2nd column of the table.

Hope this helps.

Carlos

RE: Access - calculating records

Carlos this is exactly what I was hoping for!

Regards

Adrienne


 

Access tip:

Splittng a database

Split your database into two (at least).

Keep all of your code, forms, reports, etc. in one 'code' database and all of your tables in another 'data' database which is then linked to the 'code' database.

This makes modifications, updates and back-ups that much easier and allows you to work on a new version of your 'code' database without affecting existing users. It also makes it easier should you wish to convert a single user databases into a multi-user networked version.

View all Access hints and tips


Server loaded in 0.07 secs.