Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2005, 03:00 PM
Registered User
 
Join Date: Nov 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to malekmac
Default

The thing is item 1 might have 1 unique zone with two different locations. Thats why, i can see bunch of item with 2 or 3 unique zones with different locations. so I want kind of summary that gives me the number of unique zones and unique locations. If you can tell me how to do that in access, that would be great!
Thank you

MalekMac
 
Old November 29th, 2005, 03:12 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

This may work:

SELECT tblItems.Item, tblItems.Location, Count(tblItems.Location) AS CountOfLocation, tblItems.Zones, Count(tblItems.Zones) AS CountOfZones
FROM tblItems
GROUP BY tblItems.Item, tblItems.Location, tblItems.Zones;





mmcdonal
 
Old November 29th, 2005, 03:24 PM
Registered User
 
Join Date: Nov 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to malekmac
Default

Didnt work!

MalekMac
 
Old November 29th, 2005, 04:16 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You really need some sort of cross tab query.

mmcdonal
 
Old November 29th, 2005, 04:18 PM
Registered User
 
Join Date: Nov 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to malekmac
Default

any details you can support?

MalekMac
 
Old November 29th, 2005, 04:20 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Not right now. Do a search for cross tab query and see what the link to having the wizard make it for you looks like.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
counting unique entries Figgis Access 5 November 23rd, 2005 07:01 PM
Counting unique orders rlull SQL Server 2000 1 November 12th, 2005 12:34 AM
Counting unique record dlamarche Access 5 March 22nd, 2005 08:51 AM
displaying 6 items only having 20 items Lakshmi KS VB Components 1 February 17th, 2004 10:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.