Set y to a variable from your first query and do something like:
string sSql;
string sTable;
sTable = [value of first query];
sSql = "Select * from " + sTable;
//execute query
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
|