A couple of things to check...
- A form will use a private data session and reset SET EXCLUSIVE to default (ON). Make sure you set it again before the tables...and the database...are opened in the form
- Use the AGAIN clause
USE S:\mytable.dbf
AGAIN IN 0 ALIAS test2 SHARED
>Hi all,
>
>I have a problem using several time the same table in my form...
>
>SET EXCLUSIVE is OFF
>
>I have the following code
>
>
USE S:\mytable.dbf IN 0 ALIAS test1 SHARED
>.....
>....
>...
>USE S:\mytable.dbf IN 0 ALIAS test2 SHARED
>
>when I open a second time my table, I get a "File is in use" error. I tried to use the "AGAIN", it worked but when using it, my app doesn't seems to update the datas when another application change them.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer