perchè usi select * into ...

e non select * from tb_dati where cod='" & txt.text & "'