Chuck,
To my surprise help for readkey() says it's for backward compatibility use .. instead !!! It's just one another function though doesn't have a true replacement commented out like this. ReadKey() would return 5 (dnarrow, tab) and 15 (enter or filled).
But as I said before if user leaves the cell with mouse those values wouldn't be reliable.
Now let me understand what you want to do. Sum and count would be done no matter how the cell was left ? No matter how the cell was left next row's first cell would get the focus (new record if at last row) ? Or would it advance to next row only in case dnarrow, enter ?
Lostfocus fires all the time so I think it's best place for summing and counting.
For other purpose I wouldn't use textbox's methods but grid's BRCC and ARCC.
Cetin
>>Chuck,
>>>Lastkey() however is last digit typed if you mean field is exited for its >>maxlength is reached.
>
>Cetin,
>No matter what I do, even using "INLIST(LASTKEY(),0,13,24)", the cursor will NOT advance to the next (new) record when maxlength is reached. It stays on the same record.