<% Set sqlAnswer = Server.CreateObject("ADODB.Command") sqlAnswer.ActiveConnection=Conn sqlAnswer.Prepared = true sqlAnswer.commandtext="SELECT medid WHERE MedID=? ORDER BY MedAnswers.MedID" sqlAnswer.Parameters.Append sqlAnswer.CreateParameter("@MedID", adInteger, adParamInput,, theMedID) set rsAnswer = sqlAnswer.execute while not rsAnswer.eof if not rsAnswer.eof then LoadMedID = rsAnswer("MedID") Set sqlCtCom = Server.CreateObject("ADODB.Command") sqlCtCom.ActiveConnection=Conn sqlCtCom.Prepared = true sqlCtCom.commandtext="SELECT COUNT(MAID) AS ctCom FROM MedAnswers GROUP BY MedID HAVING MedID = ?" sqlCtCom.Parameters.Append sqlCtCom.CreateParameter("@MedID", adInteger, adParamInput,, LoadMedID) set rsCtCom = sqlCtCom.execute if not rsCtCom.eof then 'response.Write rsCtCom("ctCom") 'response.End() if rsCtCom("ctCom")=1 then ctRows = ctRows+1 else ctRows = ctRows+1 'ctRows-1 end if end if rsCtCom.close set rsCtCom = nothing rsAnswer.MOVENEXT wend rsAnswer.close set rsAnswer = nothing %>
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE