AndrewMozley
Programmer
I am using the data environment for a form which does some file maintenance operations. It needs exclusive control of several tables. If it cannot get this control, the user needs to be warned.
At present there is an ON ERROR method in the Data Environment which traps the error (of trying to open the table exclusively). And at present I set a PUBLIC variable ~ CanWeProceed to “NO” so that the Load method of the form can decide not to proceed.
A couple of questions (in addition to ‘Is this the right way to cope with the issue’ !)
[ol 1]
[li]Is it possible to use a property of the form to pass this information to the Load method? I tried to do just this, but found that a property set in the ON ERROR method of the Data Environment was being reset by the time the Load method fires. Have not go to the bottom of this.[/li]
[li]Can I find out which is the table which is failing to open exclusively, so that this can be reported back to the user.[/li]
[/ol]
Thank you.