how to access mdb which is protected by password 
Author Message
 how to access mdb which is protected by password

Hi,

Please help me,

how can I open a database which is protected by password.

example :

I am using

Set Dbs = OpenDatabase("f:\master.mdb", False)

then I add a password to the mdb for security, the problem after I supply
password to mdb my application cannot run, it say not a valid password.

I don't know how to open it from code.

Thank,s

...Aries...



Sun, 14 Oct 2001 03:00:00 GMT  
 how to access mdb which is protected by password
Hi,

What kind of Dataaccess do you use?

You could typically make a simple file dsn to the database and then open the
dsn in the Notepad to get the proper syntax.

Quote:

>Hi,

>Please help me,

>how can I open a database which is protected by password.

>example :

>I am using

>Set Dbs = OpenDatabase("f:\master.mdb", False)

>then I add a password to the mdb for security, the problem after I supply
>password to mdb my application cannot run, it say not a valid password.

>I don't know how to open it from code.

>Thank,s

>...Aries...



Sun, 14 Oct 2001 03:00:00 GMT  
 how to access mdb which is protected by password
If you are using db object add as parameter for OpenDatabase method
";pwd=YourPassword", for data control replace Access in Connect property
with the same string, but without double quotes (just type it in instead of
using combo box
Vlad

Quote:

>Hi,

>Please help me,

>how can I open a database which is protected by password.

>example :

>I am using

>Set Dbs = OpenDatabase("f:\master.mdb", False)

>then I add a password to the mdb for security, the problem after I supply
>password to mdb my application cannot run, it say not a valid password.

>I don't know how to open it from code.

>Thank,s

>...Aries...



Sun, 14 Oct 2001 03:00:00 GMT  
 how to access mdb which is protected by password
Hi,

Thank for your respon.

I am using microsoft access.

I want my database secure by password, so if someone try to open by ms
aceess need a password to open it.

First when I design my application everything going well, and now I did
complete building application, the problem is the operator whose familiar
with ms access is easy to open and browse the database, so I think I need to
put a password on a database.

Now the problem when I am running my application error come up which is say
that not a valid password, that true because until now I dont know how to
control / access a database which have a password from vb6 code.

Thanks ,

Aries



Quote:
> Hi,

> What kind of Dataaccess do you use?

> You could typically make a simple file dsn to the database and then open
the
> dsn in the Notepad to get the proper syntax.



Mon, 15 Oct 2001 03:00:00 GMT  
 how to access mdb which is protected by password
Hi thank for the response,

I did try by adding parameter for opendatabase method as you explain but
still have an error.

exactly i try some of this :

set dbs=dbs.opendatabase("f:\master.mdb",false) as parameter
";pwd=mypassword" (i get  error with this command)

than I try define a variable as parameter and set the value of the variable
with my password...... I get error too.

waiting for your next explanation.

Thank's

...Aries...

Quote:

>If you are using db object add as parameter for OpenDatabase method
>";pwd=YourPassword", for data control replace Access in Connect property
>with the same string, but without double quotes (just type it in instead of
>using combo box
>Vlad




Mon, 15 Oct 2001 03:00:00 GMT  
 how to access mdb which is protected by password
Thank' s to Deven,

My problem solve.

This is the message from Deven :

********

 I tried this and it works (on an access database protected by a simple
password, not by using user definitions - no *.mdw)
set db=dbengine.workspaces(0).opendatabase(gdbpathname &
"mydatabase.mdb",true,false,";pwd=mypassword")

********



Tue, 16 Oct 2001 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. accessing a password protected Access Mdb

2. Password protected Access.mdb from VB?

3. Password protected Access.mdb from VB?

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

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. CR with password protected Access MDB...

9. VB5 accessing password protected MDB?

10. Password protect an Access MDB

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

12. Problems with ADO Data Control connecting to a Password Protected MDB

 

 
Powered by phpBB® Forum Software