hi guys
I have the following code that works and opens an access database. how do i pass my username and password to prevent the logon screen from popping up? The database uses the workgroup security.
any help would be appreciated. thanks in advance.
Cheers!
Set accDB = CreateObject("Access.Application")
accDB.visible = false
accDB.automationsecurity=1
accDB.OpenCurrentDatabase("C:\Documents and Settings\Administrator\My Documents\ltq database.mdb")
accDB.runmacro"mcrRefresh"
accDB.CloseCurrentDatabase
accDB.Quit
I have the following code that works and opens an access database. how do i pass my username and password to prevent the logon screen from popping up? The database uses the workgroup security.
any help would be appreciated. thanks in advance.
Cheers!
Set accDB = CreateObject("Access.Application")
accDB.visible = false
accDB.automationsecurity=1
accDB.OpenCurrentDatabase("C:\Documents and Settings\Administrator\My Documents\ltq database.mdb")
accDB.runmacro"mcrRefresh"
accDB.CloseCurrentDatabase
accDB.Quit