hi
can any one help me how to construct an sql select statement in which the table's name , i'm givin it in a variable
Tbl="eng_class6 " or sometimes Tbl="maths_clas s6" , so I want data from diiferent tables.
Cmd.CommandText = "select * from " & Tbl & " where questno =" & arrRndNos(i) & ""
Cmd.CommandType = adCmdTable
Set RS = Cmd.Execute
Is it possible?
this gives me the error in FROM clause.
thanks
can any one help me how to construct an sql select statement in which the table's name , i'm givin it in a variable
Tbl="eng_class6 " or sometimes Tbl="maths_clas s6" , so I want data from diiferent tables.
Cmd.CommandText = "select * from " & Tbl & " where questno =" & arrRndNos(i) & ""
Cmd.CommandType = adCmdTable
Set RS = Cmd.Execute
Is it possible?
this gives me the error in FROM clause.
thanks
Comment