>hello everyone,
>
>I'm writing a multi-user program, but I can't make the grid work in shared mode, this is how I do it:
>
>use MyTable shared
>thisform.addobject("MyGrid", "oMyGrid")
>set filter to rec_id=target_id
>
>in the Grid I have .recordsource=MyTable
>
>But then, when the 2nd user run the program, it says "File in use".
>Could someone please tell me how to let the Grid open the table in shared mode?
SET EXCLUSIVE OFF
If your grid is on a form that's using a Private Datasession, this shouldn't be necessary (unless the table was already open before the form was started).