I am very novice at asp and SQL, please help point me in the right direction:
I am using ASP JSCRIPT and SQL Server 2000
Table name is dbo.survey
Field name is q1
Each record has either "Yes" or "No" for this field.
I want to display how many "Yes" and "No" answers there are like this:
1. Should DISTRICT CONCERT BAND MPA include a clinic session for each band immediately following sight reading?
Yes: insert number of "Yes" answers here
No: insert number of "No" answers here
Here's what is in the body of the code underneath the question:
[tt]
Yes: <%=(SELECT COUNT(q1) FROM dbo.survey WHERE q1='Yes'%>
No: <%=(SELECT COUNT(q1) FROM dbo.survey WHERE q1='Yes'%>
[/tt]
I'm getting this error:
Microsoft JScript compilation (0x800A03EE)
Expected ')'
What am I doing wrong?
I am using ASP JSCRIPT and SQL Server 2000
Table name is dbo.survey
Field name is q1
Each record has either "Yes" or "No" for this field.
I want to display how many "Yes" and "No" answers there are like this:
1. Should DISTRICT CONCERT BAND MPA include a clinic session for each band immediately following sight reading?
Yes: insert number of "Yes" answers here
No: insert number of "No" answers here
Here's what is in the body of the code underneath the question:
[tt]
Yes: <%=(SELECT COUNT(q1) FROM dbo.survey WHERE q1='Yes'%>
No: <%=(SELECT COUNT(q1) FROM dbo.survey WHERE q1='Yes'%>
[/tt]
I'm getting this error:
Microsoft JScript compilation (0x800A03EE)
Expected ')'
What am I doing wrong?