my previous code:
set rs = conn.execute("select distinct Course_Title,Date,Month from Registration")
.
.
<select size="1" name="list2">
.
.
<option value="<%=rs("Course_Title")%>"><%=rs("Course_Titl e")%></option>
.
.
</select>
.
.
Set rs2 = Server.CreateObject("ADODB.Recordset")
rs2.open "SELECT Course_Title, [Date], [Month], COUNT(Course_Title) AS [no] FROM Registration WHERE Approval_Status ='NO' GROUP BY Course_Title, [Date], [Month]",Conn
Dim strCount
strCount = 0
While NOT rs2.EOF AND NOT rs2.BOF
strCount = strCount + 1
rs2.MoveNext()
Wend
.
.
Approved:<input type="text" name="appcount" size="10" value="<%=strCount%>">
But it display one time only. Example, I got record A(NO), A(NO),A(YES),
B(NO), B(NO),B(NO),B(YES) in drop downlist.
when it display the number for A where Approval Status is "NO", it only 2, meaning got two A(NO) it counts as 1. Got 2 B(NO) counted as 1
Then it display 2 in the textbox. It should be 3 if I choose record B.