VB5 accessing password protected MDB? 
Author Message
 VB5 accessing password protected MDB?

I need to protect an MDB with the simple "password" scheme
(not the "user authorizations" scheme"); but I have not
understood how can I access such MDB from a VB5 application!
Thank you for your time...
-----------------------------
            Tommaso Romanazzi

         "Nulla si crea e
          tutto si distrugge"
-----------------------------



Mon, 17 Apr 2000 03:00:00 GMT  
 VB5 accessing password protected MDB?

I have a question that is somewhat related:

Can you write code in VB 5.0 to change the MDB password?   This would
be to have the user update it at some point in the future.   If so,
how would you go about it?

Thanks.


Quote:

>>I need to protect an MDB with the simple "password" scheme
>>(not the "user authorizations" scheme"); but I have not
>>understood how can I access such MDB from a VB5 application!

>Use ";pwd=yourpassword" as the "connect" argument to OpenDatabase

>-- Jim Ferguson, FMS
>   http://www.fmsinc.com



Fri, 21 Apr 2000 03:00:00 GMT  
 VB5 accessing password protected MDB?

Hi Jim
If you want to use the OpenDatabase method to open a password-protected
database, specify the database password as part of the Connect argument.
The syntax to open a database with the OpenDatabase method is as follows:

  Set db = workspace.OpenDatabase(dbname, options, read-only, connect)
exp:
 Sub OpenDB()
       Dim db As Database
       Dim ws As WorkSpace
       Dim rst As Recordset
       Set ws = DBEngine.WorkSpaces(0)
       Set db = ws.OpenDatabase _
       ("C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb", _
       False, False, "MS Access;PWD=northwind")
       Set rst = db.OpenRecordset("Customers", dbOpenDynaset)
       If rst.RecordCount > 0 Then
         rst.MoveLast
         MsgBox rst!CustomerID
       End If
       rst.Close
       db.Close
      End Sub

Hope this helps.Let me know if this helps.
Regards
A.V.Narayanan
Aditi Technologies Pvt Ltd

http://www.aditi.com



Quote:
> >I need to protect an MDB with the simple "password" scheme
> >(not the "user authorizations" scheme"); but I have not
> >understood how can I access such MDB from a VB5 application!

> Use ";pwd=yourpassword" as the "connect" argument to OpenDatabase

> -- Jim Ferguson, FMS
>    http://www.fmsinc.com



Mon, 24 Apr 2000 03:00:00 GMT  
 VB5 accessing password protected MDB?

Quote:
>Hi Jim
>If you want to use the OpenDatabase method to open a password-protected
>database, specify the database password as part of the Connect argument.

Isn't that what I just said?

-- Jim Ferguson, FMS
   http://www.fmsinc.com



Tue, 25 Apr 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. accessing a password protected Access Mdb

2. VB5 and PASSWORD Protected MDB file.

3. Password protected Access.mdb from VB?

4. Password protected Access.mdb from VB?

5. 'how to open an password protected access mdb file

6. 'how to open an password protected access mdb file

7. 'how to open an password protected access mdb file

8. 'how to open an password protected access mdb file

9. CR with password protected Access MDB...

10. how to access mdb which is protected by password

11. Password protect an Access MDB

12. how do i access a password protected MS-ACCESS db without the password

 

 
Powered by phpBB® Forum Software