Marshall Brooks
Member
- Local time
- Yesterday, 20:32
- Joined
- Feb 28, 2023
- Messages
- 696
I have code in my database that checks for the startup location and checks for an updated version and then downloads the version.
I was looking at @isladogs autoexec page https://www.isladogs.co.uk/autoexec-myths/index.html on a different issue: https://www.access-programmers.co.u...-or-action-onerror-isnt-available-now.328585/
And I noticed this statement:
1. Autoexec runs first before any other code
WRONG – code in the startup form runs followed by any actions from the autoexec macro
My previous version of the database loaded FormA on startup and ran this code from the FormLoad Event of FormA.
With the new version of the database, I went to a switchboard form, but I moved this code to a module function which is called from the AutoExec VBA code and then the VBA Code loads the switchboard form. No form is specifically loaded at startup.
Should I change it back (i.e. should I load the switchboard form at startup and run the checks from there), or does it not matter?
I was looking at @isladogs autoexec page https://www.isladogs.co.uk/autoexec-myths/index.html on a different issue: https://www.access-programmers.co.u...-or-action-onerror-isnt-available-now.328585/
And I noticed this statement:
1. Autoexec runs first before any other code
WRONG – code in the startup form runs followed by any actions from the autoexec macro
My previous version of the database loaded FormA on startup and ran this code from the FormLoad Event of FormA.
With the new version of the database, I went to a switchboard form, but I moved this code to a module function which is called from the AutoExec VBA code and then the VBA Code loads the switchboard form. No form is specifically loaded at startup.
Should I change it back (i.e. should I load the switchboard form at startup and run the checks from there), or does it not matter?