Typically Access Applications have a start up form object. There is no Main module that runs at start up as there is, say, with C++ and Java.
So your solution might be -- assuming I understand the problem -- to configure the app's start up form. Menu: Tools-Startup...
And then call your main module function from the Open or Load event handler in the startup form's module.
Regards,
Tim