If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > count based on multiple criteria & records

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-02-06, 05:47
squizoid squizoid is offline
Registered User
 
Join Date: Mar 2005
Location: Wellington, New Zealand.
Posts: 28
Question count based on multiple criteria & records

Need help with this one.

I have an online survey with 20 question, they each have 4 options. I need to display in a table the count of each option chosen per question.

e.g. q1: 6 people selected 1, 2 selected 2, 8 select 3 and 10 selected 4.

I am using asp and an access db.

Can anyone suggest the best way to go about this? do I put all records from the db into an array then count occurances and store in another array?(4X20, 80 results to display in a table - Doh) or can I use sql? combination of both? query built into db?....I dunno

Cheers
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On