PC Review


Reply
Thread Tools Rate Thread

How can I be sure that I have opened a BE .mdb in exlusive mode?

 
 
Savvoulidis Iordanis
Guest
Posts: n/a
 
      12th Sep 2004
I have developed a way to log user's apps, out of the BE file, for
maintenance.
Do I still need to open the BE in exlusive mode to make a backup using
CompactDatabase method?
I know that this must be done while out of the app, which has linked tables
to the BE, but still, how can I be sure that noone is logged again just
before I run that method?



 
Reply With Quote
 
 
 
 
'69 Camaro
Guest
Posts: n/a
 
      12th Sep 2004
Hi, Savvoulidis.

> Do I still need to open the BE in exlusive mode to make a backup using
> CompactDatabase method?


One needs only "exclusive access," not "exclusive mode" to compact a
database. However, since your database is in a multiuser environment, then
opening the database in "exclusive mode" is the recommended method to ensure
that the database will be able to compact successfully.

> how can I be sure that noone is logged again just
> before I run that method?


Don't worry. If you try to open a database in exclusive mode while someone
else has the database open, then you'll receive an error message and will be
prevented from opening it. Make sure that your procedure's error handler
accommodates this. If someone else tries to open the database after you've
opened it exclusively, then they'll receive an error message and won't be
able to interfere with your compaction.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)


"Savvoulidis Iordanis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have developed a way to log user's apps, out of the BE file, for
> maintenance.
> Do I still need to open the BE in exlusive mode to make a backup using
> CompactDatabase method?
> I know that this must be done while out of the app, which has linked

tables
> to the BE, but still, how can I be sure that noone is logged again just
> before I run that method?
>
>
>



 
Reply With Quote
 
Savvoulidis Iordanis
Guest
Posts: n/a
 
      15th Sep 2004
Thanks.

But how can I open the BE file exclusively using another secure application
from the network?
(I mean an app that does not have any linked tables on the BE)




 
Reply With Quote
 
'69 Camaro
Guest
Posts: n/a
 
      15th Sep 2004
Hi, Savvoulidis.

> But how can I open the BE file exclusively using another secure

application
> from the network?


Use the OpenDatabase( ) method of the Workspace object from the DAO library
to open the database remotely. You must specify the "exclusive" option when
opening the remote database. See Access Help for more information on this
method.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)


"Savvoulidis Iordanis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks.
>
> But how can I open the BE file exclusively using another secure

application
> from the network?
> (I mean an app that does not have any linked tables on the BE)
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: You do not have exlusive access to the database at this time. Erro Pete D. Microsoft Access 2 25th Aug 2008 12:21 AM
Re: You do not have exlusive access to the database at this time. Erro Pete D. Microsoft Access 0 21st Aug 2008 11:25 PM
Exlusive Access Error Message tbl Microsoft Access Security 1 19th May 2007 12:34 AM
How to get mutally exlusive cells on mouse click men@work.com Microsoft Excel Programming 12 16th Apr 2007 03:57 PM
Exlusive mode Juan Carlos Hernández Pazos Microsoft Access 0 9th Sep 2003 01:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:04 PM.