>Ron,
>
>Move your code out of the keypress and into the click event. That way the enter key will have been already processed by VFP before your code runs.
The call to THISFORM.oDataLib.mGoTop() is in the click event. The LOCATE command by itself without any other statement is in mGoTop()and errors with the mentioned error. I want mGoTop() to be abstract, working only on the current table and I would prefer for the code to not be in the form. The table is a Fox 26 free table. The data session is default not Private. And I am not using the data enviroment. Loaded the table with the use command in the form init.
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.
Riddley Walker