To execute a function as soon as a database opens, I added a RunCode to the top of Autoexec macro.
To my surprise, Autoexec wasn't the first.
On_Open event of the first form (Current database option : Display form) was triggered before autoexec macro.
Is there anywhere else (prior to first...