Question : How to open a database in Exclusive Mode

The only ways I know to open databases in exclusive mode are:
- Open the MS Access application (rather than an Access file), select an Access file, hit File/ Open, click on the arrow on the Open button, and select Open  Exclusive.
Add this switch to the string that opens the database: /EXCL .

Are there any other ways?

Answer : How to open a database in Exclusive Mode

Like so:

    Dim db As DAO.Database
    Set db = OpenDatabase("YourMdbName", True)
   
The two you mentioned plus this one are the only ones I'm aware of.  Well, there is also the OpenCurrentDatabase method also with the same Options parameter (True).

mx
Random Solutions  
 
programming4us programming4us