Use an AutoExec macro or a startup form. If you use a shortcut to
start a specific Access database, you can also use the /x switch to
start a macro, or the /cmd switch to run a command. I am not sure
these last 2 options are still available in Access 2007 since I
haven't used them at all in 10 years.