>We keep one table open at all times in our system. We test if we can open that table exclusive on startup and if we can we know that PC is currently the only one in the system and it can run stuff requiring exclusive use of the system.
>
>When doing the test in a form with a private data session it is always shown as in use because it is in use in the 1st data session. Is there anyplace in the form code can be run before the form selects the private data session?
>Thanks.
I would guess it would be one of the form's DE methods (Init or BeforeOpenTables) if it's possible.
You may also try DS_Assign method, but doubtfully it would work.
If it's not broken, fix it until it is.
My Blog