p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Counting fields in recordset


Message #1 by "Webdev" <webdev@i...> on Mon, 19 Mar 2001 08:36:51 +1000
Are you storing the survey results in a database?

just do

SELECT COUNT(field) FROM table WHERE field="Yes"

or similar

-----Original Message-----
From: Webdev [mailto:webdev@i...]
Sent: Sunday, March 18, 2001 10:37 PM
To: How To
Subject: Counting fields in recordset


Hi there,

I need to build a results page for a survey and need to count all the Yes's
and No's.

I figure I can can probably pull out all the instances of each one but the
adding up bit I cannot get my head around.

Any ideas would be wonderful.

Regards
Grant


  Return to Index