>>>I can't believe that I can't figure this out, but how can I change the active cell within a grid based on a user keystroke.
>>>
>>>Specifically, I am using a grid for entering a lot of data. The user will press tab to move across a row, but when they press enter, I want to move down one row and back to the leftmost column.
>>>
>>>On key label just doesn;t seem to have access to activerow and activatecell.
>>>
>>>Thanks
>>
>>Use the KeyPress event of the TextBox or whatever controls you have in your grid.
>
>
Doug,
>Real problem here is not keypress. OTOH using keypress of controls in a grid is coding too much if it would do the same thing. When you need it set form.keypreview to .t. and code in form.keypress.
>Cetin
Good point.
Doug Stalter
"According to the proverb, the best things are the most difficult." -Plutarch