E
Ennex
Hello,
I'm porting a database developed in Access to a Web site. In Access, I
define a number of queries that are then used in other queries just as if
they were tables. How do I do the same thing in ASP?
I am thinking that what I want to do is something like the following. I
would open a recordset that holds the results of a query:
oRS1.Open('SELECT fields FROM table WHERE criterion', ...)
and then I want to open another recordset that performs a SQL operation on
the first recordset
oRS2.Open('SELECT fields FROM oRS1 WHERE criterion', ...)
But I don't know how to do that. How do I reference an established recordset
in a new SQL statement? I can't just put the name of the recordset there
because the table name that goes into a SQL statement is a string, and the
recordset is an object, not a string.
Am I making sense? I'm sure there must be a way to do this, but I can't find
any documentaiton of such a procedure.
Thanks for your help.
Regards,
Marshall Burns
www.Ennex.com
I'm porting a database developed in Access to a Web site. In Access, I
define a number of queries that are then used in other queries just as if
they were tables. How do I do the same thing in ASP?
I am thinking that what I want to do is something like the following. I
would open a recordset that holds the results of a query:
oRS1.Open('SELECT fields FROM table WHERE criterion', ...)
and then I want to open another recordset that performs a SQL operation on
the first recordset
oRS2.Open('SELECT fields FROM oRS1 WHERE criterion', ...)
But I don't know how to do that. How do I reference an established recordset
in a new SQL statement? I can't just put the name of the recordset there
because the table name that goes into a SQL statement is a string, and the
recordset is an object, not a string.
Am I making sense? I'm sure there must be a way to do this, but I can't find
any documentaiton of such a procedure.
Thanks for your help.
Regards,
Marshall Burns
www.Ennex.com