>hello
>
>i have a table (myTable) opened exclusive in the form's DE. there is a command button on the form with code
>
>select myTable
>pack
>
>if i click the command button 1st time table get packed.if i again hit pack it gets packed but the third time its gives a error message file is open in another work area.
>
>how to avoid this.
Looks like a job for the debugger. I suspect you have additional code somewhere, which opens the file without you being aware of this fact.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)