"Ryan Tisserand" wrote in
> My form "UpdateForm" has a command button
> "Update" that runs make table queries that will only
[quoted text clipped - 11 lines]
> they cant run update at this time"
> End If
In your update process, is there additional user interaction before
executing the command that would trigger the "On Error GoTo" -- effort that
would be lost? If not, then it will be transparent to the user whether you
execute code to issue a MsgBox and don't try to run the update, or whether
you run the update, it triggers the error, and you execute code to issue a
MsgBox.
Larry Linson
Microsoft Access MVP
Ryan Tisserand - 14 Sep 2007 14:20 GMT
There is additional interaction. I have a progress bar that lets them know
that the update is running. Another reason to check if the database is
exclusive or not is because there is a total of 9 queries that run when the
command button is pushed. It may make it through 4 of these queries before
it reaches one that is locked due to someone being in that recordset. This
is why I need to check the status of the database Before the update is ran.
> "Ryan Tisserand" wrote in
>
[quoted text clipped - 23 lines]
> Larry Linson
> Microsoft Access MVP
JohnC - 16 Sep 2007 19:40 GMT
For this very reason, I have gotten away from Make table queries in a
multi-user setup. I prefer to use a delete query followed by an append
query. Still not perfect but this has been working fine for our
applications.
John
> There is additional interaction. I have a progress bar that lets them
> know
[quoted text clipped - 39 lines]
>> Larry Linson
>> Microsoft Access MVP
Larry Linson - 16 Sep 2007 23:53 GMT
If in Access 2000 or later, try opening an Object in the Database in Design
View, if it succeeds, you have opened for Exclusive Use. If you end up in
the Processing specified in your OnError statement, you can shut down. I do
not remember if that is the case for Access 95 and 97, and am not set up to
try. In Access 2.0, for sure, you did not have to have Exclusive Use to
modify objects.
Larry Linson
Microsoft Access MVP
> There is additional interaction. I have a progress bar that lets them
> know
[quoted text clipped - 39 lines]
>> Larry Linson
>> Microsoft Access MVP