>>Okay, I'm using the ACTIVEPAGE in the ClickEvent of a command button; it moves to the proper page (much quicker than MOUSE-CLICK-AT) and without the "ghosts." It also contains an INSERT-SQL command followed by THISFORM.PAGEFRAME1.CONTAINER1.GRID1.COLUMN1.TEXT1.SETFOCUS and a command to set the backgound color of the grid's TextBox. It inserts a new record but the grid doesn't display that it has focus unless I physically click in the text/column. The set focus command works fine with the "mouseclickat-appendblank-setfocus" process used with the option group. The set focus command sequence is identical. Does Insert-SQL cause this difference? I've been advised that insert-sql is preferable to append blank & replace. Any thoughts?
>>
>>Thanks again.
>>
>>--lincoln
>
>You might need to refresh the page in the pageframe after you call the grid's Setfocus method.
Ryan is right. Make sure that your grid is refreshed after INSERTing the record.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison