I prefer to use the Shell function to open a secured db with VBA so that the users do not have a clue as to what the password is and also where the db is.
Just a quick one....
Where do you call the Shell cmd from ? I would have thought that to open a Db you would have to supply the user name and password first
Just a quick one....
Where do you call the Shell cmd from ? I would have thought that to open a Db you would have to supply the user name and password first
You can call if from any application [Access, Excel, VB, etc.] that uses the shell command. It is just like using a custom shortcut like I have posted above. It bypasses the Access login screen if you are using true Access security. Since my code is protected I do not have to worry about the user discovering the login name and password that is needed to remotely open or compact the db. I only use the "user" switch for when I need to automate opening the db with the user login and password. Since they already know it, no worries.
Also, the order of the /switches does not seem to matter in the target string.