I am trying to write function which consists of sql statement. Is it possible to do that ? I tried this code but it did not work. Any suggestion !!!
<!--#include file="connect.asp"-->
<%
Function Test(strColumn,strTable,strCondition)
set rst=server.createobject("adodb.recordset")
rst.open sql,conn,1,3
sql="Select"&strColumn&"From"&strTable&"where"&str Condition
End Function
dim a
a=Test("price","BA","id="&1)
response.write a
%>