Create a macro called Autoexec and set the Action to RunCode. When you do
this Access will ask you for your function name further down the screen.
Type in the name of your function and include any arguments in parantheses.
If your function has no declared parameters, suffix the name with empty
parens ().
Save the macro and the next time you open the database your function should
run.