>i am using the following statment for gird control
>SELECT medicine,QTY,MRP,RACKNO,BATCHNO,EXPDATE FROM STOCK INTO CURSOR Custs and now i want to set focus to other grid in the form when the user press the enter how will i do this
The standard Windows key to go from one field to another is not ENTER, but TAB. TAB will not go out of a grid - for that, you can use CTRL-TAB.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)