Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Conditional Count

Author  Topic 

sandsingh
Starting Member

11 Posts

Posted - 2010-03-30 : 07:52:58
Table Name: BufTable
Structure/Data:

UserID Category
U1 Category A
U1 Category A
U1 Category C
U2 Category A
U2 Category C
U2 Category D
U3 Category A
U3 Category C
U3 Category D

Desired Result:
UserID Count of Category A Count of Category B Count of Category C Count of Category D
U1 2 0 1 0 etc.

Help!

PackRat
Starting Member

26 Posts

Posted - 2010-03-31 : 14:45:44
found this; not sure it's 100%, but ought to get you closer
[url]http://www.blueclaw-db.com/report_dynamic_crosstab_field.htm[/url]

_____________________________
wrote this on my TRS-80 COCO4

<PakRat/>
Go to Top of Page
   

- Advertisement -