Thanks for the responses. Yes the form could be hidden, and I was thinking I could use a startup form as part of a splash etc. sure... The question is a general one and not for a specific db. I'm just looking for a better method.
It may be better if I give an example of a situation. A db which currently uses an autoexec macro, checks the windows username of the person opening the db against a list of authorised users for the db. If the user is not registered then it displays an access denied message and boots them out. This is before it does anything else.
There may also be queries or other checks and processes that need to be run before a form is even opened etc. I'm just looking to eliiminate unnecessary steps and hopefully find a vba function or property to mirror autoexec in macros.
If there really isn't a way I will use hidden forms / splashes etc. but want to look for a method first.
Thanks..