I know that if a database has an Auto_Exec macro, and you open in programmatically, you can suppress Auto_Exec by setting Application.AutomationSecurity = msoAutomationSecurityForceDisable first:
But if it has a startup form (like Switchboard), and that form has a Form_Load or similar event, the form starts up anyway, and the event's code is run. Shouldn't that startup form and/or all its code be suppressed too? If not, how do you suppress it?
Code:
[B]AccessApp.AutomationSecurity = msoAutomationSecurityForceDisable[/B]
AccessApp.OpenCurrentDatabase MyDatabase$