I have the following in VB...
Public Sub Main()
Dim myAccess As Access.Application
Set myAccess = New Access.Application
myAccess.OpenCurrentDatabase ("C:\Test.mdb"
myAccess.Run "myProcedure"
myAccess.Quit
Set myAccess = Nothing
End Sub
It work just fine, however we have an Access MDW workgroup setup on our network and when Access is instantiated it prompts for the user and password. In a batch file I would use:
/user "username" /pwd "password"
How can I get past this with code?
Thanks in advance.
Public Sub Main()
Dim myAccess As Access.Application
Set myAccess = New Access.Application
myAccess.OpenCurrentDatabase ("C:\Test.mdb"
myAccess.Run "myProcedure"
myAccess.Quit
Set myAccess = Nothing
End Sub
It work just fine, however we have an Access MDW workgroup setup on our network and when Access is instantiated it prompts for the user and password. In a batch file I would use:
/user "username" /pwd "password"
How can I get past this with code?
Thanks in advance.