E
Edwin Knoppert
I would like to use access (for testing, then ASP.NET) to execute a query
which uses another query where a value must be set like ID = 2 or so.
How can i do that?
Here is my example, i created Table2 with an ID field and a name field
(totally useless but it's they idea what matters).
Query2 is a total:
SELECT Count(Table2.ID) As T
FROM Table2
WHERE ID = ?
Now i want QUERY1 to select it and fill ?
Select * FROM QUERY2 WHERE ? = 1
Of course the WHERE ? part will not work.
Please don't point me to parameters stuff in ado.net, i'm aware of those it
the matter of preparing selects IN selects.
Thanks,
which uses another query where a value must be set like ID = 2 or so.
How can i do that?
Here is my example, i created Table2 with an ID field and a name field
(totally useless but it's they idea what matters).
Query2 is a total:
SELECT Count(Table2.ID) As T
FROM Table2
WHERE ID = ?
Now i want QUERY1 to select it and fill ?
Select * FROM QUERY2 WHERE ? = 1
Of course the WHERE ? part will not work.
Please don't point me to parameters stuff in ado.net, i'm aware of those it
the matter of preparing selects IN selects.
Thanks,