microsoft access training course - access calculating records
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

replyReply Fri 23 Nov 2007, 11:35Delegate Adrienne said...

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

For upcoming training course dates see: Pricing & availability

replyReply Fri 23 Nov 2007, 15:07 Edited on Fri 23 Nov 2007, 15:11Trainer Carlos said...

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

replyReply Fri 23 Nov 2007, 15:19Delegate Adrienne said...

RE: Access - calculating records

Carlos this is exactly what I was hoping for!

Regards

Adrienne

 

Access tip:

Dsum

You can create percentage values based on individual products / items by using a Dsum function (used with a grouped query)

[Each value column] / Dsum[field:total for the column needed to be calculated],[tablename]

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard