I have already posted this before but I am trying again since I really need it.
I want to build a query and then use it in another query (Oracle database).
sort of :
set myconn = server.createobject("ADODB.Connection"
myconn.connectionstring = ".."
set myset = server.createobject("ADODB.recordset"
mysql = "Select ..."
myset.open mysql, myconn
and then I want to refer to this first query in another sql statement to build another query.
mysql2 = "select .."
myset2.open mysql2, myconn
How can I do that ??
In Access, instead of opening the first query, i would create a querydef and then use the DAO querydef name to refer to it in the sql statement of the second query. But how I can I do the same in ADO/ASP.
Thanks
I want to build a query and then use it in another query (Oracle database).
sort of :
set myconn = server.createobject("ADODB.Connection"
myconn.connectionstring = ".."
set myset = server.createobject("ADODB.recordset"
mysql = "Select ..."
myset.open mysql, myconn
and then I want to refer to this first query in another sql statement to build another query.
mysql2 = "select .."
myset2.open mysql2, myconn
How can I do that ??
In Access, instead of opening the first query, i would create a querydef and then use the DAO querydef name to refer to it in the sql statement of the second query. But how I can I do the same in ADO/ASP.
Thanks