Hi,
I have a visual basic program to start up a project aplication in
Access 2000. In the instrction shell i pass user end password from
mdw file. However my project database have a password database.
I need pass this password in instruction shell too.
Can Somebody help me ???
This is the codde that i'm using
Dim accObj As Access.application, Msg As String
Dim application As String, dbs As String, workgroup As String
Dim user As String, password As String, cTries As Integer
Dim x
Dim Lc_Database_Password As String
If Right(App.Path, 1) <> "\" Then
application = App.Path & "\MSACCESS.EXE"
dbs = App.Path & "\controle_saidas.mde"
workgroup = App.Path & "\system.mdw"
Else
application = App.Path & "MSACCESS.EXE"
dbs = App.Path & "controle_saidas.mde"
workgroup = App.Path & "system.mdw"
End If
user = "USUARIO_MDW" ' Use a valid username
password = "SENHA_MDW" ' and correct password
x = Shell(application & " " & Chr(34) & dbs & Chr(34)
& " /nostartup /user " & user & _
" /pwd " & password & " /wrkgrp " & Chr(34) & workgroup & Chr
(34), vbMaximizedFocus)
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~->
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [EMAIL PROTECTED]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/