Just in the button pressed event, put following line.
this will do the job.
Now one more help plz..
I need to fecth data on my new form ,written block with the procedure code :Now
Can i directly call the block
To Fetch the data on new form.
need to fecth data on my new form ,written block with the procedure code :Now
When you open the form , just press F7 then press F8 , you can see your existing data -which are available in table.
F7 - Enter Mode - F8 -Execute Mode.
If you don't want the user to click on execute query, you can use this to automatically execute the query: