Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Again how to build a query on another query 1

Status
Not open for further replies.

delorfra

Programmer
Mar 8, 2001
79
FR
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top