Need suggestions on best method to open and logon to multiple db's automatically, at any time of day, that have user level security applied which requires a name and password be supplied at open.
Five different mdbs open at different times automatically. The dbs are started between 3:00 AM to 7:00 AM, and they close automatically when their process is completed. The run time for the individual dbs varies between 5 minutes and 1.5 hours. The Windows Task Scheduler is used to control their start time. Everything is working correctly.
We are applying user level security the dbs. After user level security is applied the dbs will open and the Logon window will pre-fill with my name, but a password is required for the db to run. So somehow I will need to pass the password, when opening the db automatically between 3 and 7 AM.
My thought is the best method would be to discontinue using the Task Scheduler and create a ControlStart.mdb that will be left open 24 hours a day and would start any db at any time without regard of what may or may not already be running.
Currently user name is pre-filled…but I still require the password. It would be best to pass both the user name and the password when Shell is used. This is what I've got so far.
Retval = Shell("MSACCESS.EXE " & dbPath & "db1.mdb", 1)
Can the user name and the password be supplied using shell?
Should I stick with the Windows Task Scheduler and supply the user name and password in this method?
Suggestions?
Five different mdbs open at different times automatically. The dbs are started between 3:00 AM to 7:00 AM, and they close automatically when their process is completed. The run time for the individual dbs varies between 5 minutes and 1.5 hours. The Windows Task Scheduler is used to control their start time. Everything is working correctly.
We are applying user level security the dbs. After user level security is applied the dbs will open and the Logon window will pre-fill with my name, but a password is required for the db to run. So somehow I will need to pass the password, when opening the db automatically between 3 and 7 AM.
My thought is the best method would be to discontinue using the Task Scheduler and create a ControlStart.mdb that will be left open 24 hours a day and would start any db at any time without regard of what may or may not already be running.
Currently user name is pre-filled…but I still require the password. It would be best to pass both the user name and the password when Shell is used. This is what I've got so far.
Retval = Shell("MSACCESS.EXE " & dbPath & "db1.mdb", 1)
Can the user name and the password be supplied using shell?
Should I stick with the Windows Task Scheduler and supply the user name and password in this method?
Suggestions?