.... presumo ...
codice:
query="select * from '"& VarTabella &"' where id = " &  variabile
Ciao