Another reason that error can occur is when you (from VFP's point of view) change work areas or record pointers in the middle of events such as in the form's activate event or in the valid/lostfocus/when/gotfocus events of controls within a grid.
And usually the problem does not occur when you trace because the events are not as likely to walk over each other in that scenario.
As a general rule in the events mentioned above and probably a good general rule anyway ... if you change something, put it back the way it was.
And in the case of the activate event, that general rule does not always work... the activate event can grab control and run the code in the activate event even while other code is running.
>i have all the table sin the data env. of the form which i am using in the form. still it is giving the message cannot access the selected table. any clues??
>
>jay.
R. Scott Mackay
Classy Components Inc.