>Hi,
>
>I have a situation that the REPLACE mitable.field WITH ... don't work if I'm in another table, the questions is I don't know exactly why this don't work (maybe a datasession stuff).
>
>Any can tell me when this don't works?
>
The likely cause is you are currently in a work area that has nothing in use, or is positioned at EOF() - the VFP docs are pretty specific about this known issue. You can add the IN clause to the REPLACE to specify a work area context that's valid; the following would work to specify a valid context for REPLACE:
REPLACE mitable.field WITH ...
IN mitable