lcSQL = ALLTRIM (THISFORM.Edit1.Value)
&lcSQL
HTH
>I write following select statement in edit1.value
>
>Select * from vouchers
>
>I want to run this command through command button.
>What should I write on the click event of command1 to run codes written in edit1.value.