Urgent! Please help...password protected database 
Author Message
 Urgent! Please help...password protected database

How do I use the shell command to run msaccess.exe to open a database that
has a password set?

Thanks!
David



Wed, 29 Jun 2005 08:25:22 GMT  
 Urgent! Please help...password protected database

Do you mean open the Application and it's associated GUI or just access it using ADO to execute queries etc. against the
data.

Chris Barber.

How do I use the shell command to run msaccess.exe to open a database that
has a password set?

Thanks!
David



Wed, 29 Jun 2005 08:43:54 GMT  
 Urgent! Please help...password protected database
I use the following to open access to print reports from VB 6.0. It works
fine except when I set a database password. Not sure what the command line
would be to open the database with a password set.

         x = Shell(App.Path & "\msaccess.exe " & Chr$(34) & strDBName &
Chr$(34) & "/Runtime /Wrkgrp " & Chr$(34) & App.Path & "\system.mdw" &
Chr$(34), vbNormalFocus)

-David


Quote:
> Do you mean open the Application and it's associated GUI or just access it

using ADO to execute queries etc. against the
Quote:
> data.

> Chris Barber.




Quote:
> How do I use the shell command to run msaccess.exe to open a database that
> has a password set?

> Thanks!
> David



Wed, 29 Jun 2005 08:53:14 GMT  
 Urgent! Please help...password protected database

Automate the password typing using SENDKEYS

You can also use WSH control's appactivate, run and
sendkeys from within VB.

If you like use 100% command line use a VBScript with
wshshell.

vasu

Sreenivas (Vasu) Chaparala
      MCAD, MCSD, MCSE, MCP+I, SCJP

Quote:
>-----Original Message-----
>I use the following to open access to print reports from
VB 6.0. It works
>fine except when I set a database password. Not sure what
the command line
>would be to open the database with a password set.

>         x = Shell(App.Path & "\msaccess.exe " & Chr$(34)
& strDBName &
>Chr$(34) & "/Runtime /Wrkgrp " & Chr$(34) & App.Path
& "\system.mdw" &
>Chr$(34), vbNormalFocus)

>-David


message

>> Do you mean open the Application and it's associated

GUI or just access it
Quote:
>using ADO to execute queries etc. against the
>> data.

>> Chris Barber.



>> How do I use the shell command to run msaccess.exe to

open a database that

- Show quoted text -

Quote:
>> has a password set?

>> Thanks!
>> David

>.



Wed, 29 Jun 2005 09:17:48 GMT  
 Urgent! Please help...password protected database

Automate the password typing using SENDKEYS

You can also use WSH control's appactivate, run and
sendkeys from within VB.

If you like use 100% command line use a vbscript with
wshshell.

vasu

Sreenivas (Vasu) Chaparala
      MCAD, MCSD, MCSE, MCP+I, SCJP

Quote:
>-----Original Message-----
>I use the following to open access to print reports from
VB 6.0. It works
>fine except when I set a database password. Not sure what
the command line
>would be to open the database with a password set.

>         x = Shell(App.Path & "\msaccess.exe " & Chr$(34)
& strDBName &
>Chr$(34) & "/Runtime /Wrkgrp " & Chr$(34) & App.Path
& "\system.mdw" &
>Chr$(34), vbNormalFocus)

>-David


message

>> Do you mean open the Application and it's associated

GUI or just access it
Quote:
>using ADO to execute queries etc. against the
>> data.

>> Chris Barber.



>> How do I use the shell command to run msaccess.exe to

open a database that

- Show quoted text -

Quote:
>> has a password set?

>> Thanks!
>> David

>.



Wed, 29 Jun 2005 09:18:44 GMT  
 Urgent! Please help...password protected database

Can you give more details on this?


Quote:
> Automate the password typing using SENDKEYS

> You can also use WSH control's appactivate, run and
> sendkeys from within VB.

> If you like use 100% command line use a vbscript with
> wshshell.

> vasu

> Sreenivas (Vasu) Chaparala
>       MCAD, MCSD, MCSE, MCP+I, SCJP

> >-----Original Message-----
> >I use the following to open access to print reports from
> VB 6.0. It works
> >fine except when I set a database password. Not sure what
> the command line
> >would be to open the database with a password set.

> >         x = Shell(App.Path & "\msaccess.exe " & Chr$(34)
> & strDBName &
> >Chr$(34) & "/Runtime /Wrkgrp " & Chr$(34) & App.Path
> & "\system.mdw" &
> >Chr$(34), vbNormalFocus)

> >-David


> message

> >> Do you mean open the Application and it's associated
> GUI or just access it
> >using ADO to execute queries etc. against the
> >> data.

> >> Chris Barber.



> >> How do I use the shell command to run msaccess.exe to
> open a database that
> >> has a password set?

> >> Thanks!
> >> David

> >.



Wed, 29 Jun 2005 09:42:25 GMT  
 Urgent! Please help...password protected database

HI,
See this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2...
l/acrefStartUpCommandLineOptionsS.asp

--
HTH
Dan Artuso, MVP

"a problem well stated is a problem half solved"


Quote:
> I use the following to open access to print reports from VB 6.0. It works
> fine except when I set a database password. Not sure what the command line
> would be to open the database with a password set.

>          x = Shell(App.Path & "\msaccess.exe " & Chr$(34) & strDBName &
> Chr$(34) & "/Runtime /Wrkgrp " & Chr$(34) & App.Path & "\system.mdw" &
> Chr$(34), vbNormalFocus)

> -David



> > Do you mean open the Application and it's associated GUI or just access
it
> using ADO to execute queries etc. against the
> > data.

> > Chris Barber.



> > How do I use the shell command to run msaccess.exe to open a database
that
> > has a password set?

> > Thanks!
> > David



Wed, 29 Jun 2005 22:07:31 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Please Help, Password Protected Jet Databases

2. (Urgent) Use Data Control (DAO) to open a password protected Access Database

3. Password Protected DB PLEASE HELP!!!

4. Urgent-Password of Protected Form --Wrong!

5. Password protect an aplication (URGENT!!!)

6. URGENT...HELP WITH DATABASE.........Please help!!

7. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

8. Troubles with Acc97 and password-protected Back-end database

9. Password Protected Database

10. Linking Tables in Password protected databases using VBA

11. Automating Word Mail merge from a password-protected Access database

12. Password protected database (Access 97)

 

 
Powered by phpBB® Forum Software