HELP !!!! Opening database EXCLUSIVE 
Author Message
 HELP !!!! Opening database EXCLUSIVE

Here is my problem, I need to open the database EXCLUSIVE because it has to
run from a Cd-rom, at the moment the program makes a *.LDB file for
multiuser purpurs, ofcaurse this file cant be written to the CD-Rom so the
program Exits.
How do I get around that ?

Here is some of the code!

<CUT>
Statemends i MODULE1

Global dbname As String
Global DB As Database
Global RS As Recordset

Statemends i FORM1 (Form_Load)

Private Sub Form_Load()
dbname = App.Path & "\emu.mdb"
Set DB = DBEngine.Workspaces(0).OpenDatabase(dbname)
Set RS = DB.OpenRecordset("EMU", dbOpenDynaset)
<CUT>



Tue, 26 Oct 1999 03:00:00 GMT  
 HELP !!!! Opening database EXCLUSIVE

You'll have to open it "read-only"
:
  - Set DB = DBEngine.Workspaces(0).OpenDatabase(dbname. True, True)

HTH.

Dag.
-----------------


Quote:

>Here is my problem, I need to open the database EXCLUSIVE because it has
to
>run from a Cd-rom, at the moment the program makes a *.LDB file for
>multiuser purpurs, ofcaurse this file cant be written to the CD-Rom so
the
>program Exits.
>How do I get around that ?

>Here is some of the code!

><CUT>
>Statemends i MODULE1

>Global dbname As String
>Global DB As Database
>Global RS As Recordset

>Statemends i FORM1 (Form_Load)

>Private Sub Form_Load()
>dbname = App.Path & "\emu.mdb"
>Set DB = DBEngine.Workspaces(0).OpenDatabase(dbname)
>Set RS = DB.OpenRecordset("EMU", dbOpenDynaset)
><CUT>



Wed, 27 Oct 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. HELP !!!! Opening database EXCLUSIVE

2. Is current database opened exclusive/shared?

3. VB4 opening database as exclusive

4. VB4 opening database as exclusive

5. Opening Access Database in Exclusive mode

6. VB4 opening database as exclusive

7. database already opened for exclusive use

8. Check for exclusive file open--if prior open

9. vba : currentdb open in exclusive mode ?

10. exclusive / shared opened db

11. Open exclusive

12. Open Exclusive

 

 
Powered by phpBB® Forum Software