Change Startup Form

  • Thread starter auujxa2 via AccessMonster.com
  • Start date
A

auujxa2 via AccessMonster.com

I have 15 databases on our company public drive, that all have the same
startup form, "frmLock" - which simply closes the database upon open. It's
an easy way I use to "lock down" the databases for people who don't know to
use the shift key on open.

The problem is, when I need to unlock them, it's a pain to unlock 15
databases by changing the startup "frmLock" to the REAL form, "frmWelcome".

I want to create a small database that runs code to change the 15 start forms
from frmLock to frmWelcome.

I figured:
1) I need to bypass the startup form so it doesn't close
2) somehow change the name for startup

Any direction you could give would be helpful. I'm pretty decent with VBA to
understand/figure out what you send.

Thanks!
John
 
A

auujxa2 via AccessMonster.com

I found code that worked.

Sorry!

CurrentDb.Properties("StartupForm") = "frmUnlock"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top