I am tryin to display the value from this sql statement in a text box on the web page.
strSQL = "select sum(POVal1) from projects where project_code = '12345'"
objRst.Open strSQL,objConn,adOpenStatic
objRst.Close
However when i look at the text box it contains the select statement instead of the value of the select statement.
<td width="0" valign="top">
<p> <h2><strong><font size=3 color=mediumslateblue> Project
Registration Products Table</font></STRONG>
</h2> <p>PO Value <input type="text" name="POTotal" size="20" value="<%=strSQL%>"></p>
I am only a beginner but does anyone have any idea what i'm doing wrong?
strSQL = "select sum(POVal1) from projects where project_code = '12345'"
objRst.Open strSQL,objConn,adOpenStatic
objRst.Close
However when i look at the text box it contains the select statement instead of the value of the select statement.
<td width="0" valign="top">
<p> <h2><strong><font size=3 color=mediumslateblue> Project
Registration Products Table</font></STRONG>
</h2> <p>PO Value <input type="text" name="POTotal" size="20" value="<%=strSQL%>"></p>
I am only a beginner but does anyone have any idea what i'm doing wrong?