I am trying to put a placeholder where the table name should go in my select statement and it won't let me. It will accept a placeholder for the where clause but not in the select part of the SQL statement. I can do it using ADO but my whole ASP page is built using DTCs. In ADO the statement is
"select * from tbl_" & txtdept.value & "where empid=' " & txtempid & " ' "
This will not work as is if I plug it into the DTC recordset SQL statement and it will not accept select * from ? where empid = ?
Any suggestions. Thanks!!
"select * from tbl_" & txtdept.value & "where empid=' " & txtempid & " ' "
This will not work as is if I plug it into the DTC recordset SQL statement and it will not accept select * from ? where empid = ?
Any suggestions. Thanks!!