This is the code that I used ,embedded in the macro autoexec ,but it does not work.
Where am I wrong?
Function autoexec()
On Error GoTo autoexec_Err
AddTrustedLocation
DoCmd.OpenForm "Menu", acNormal, "", "", , acNormal
autoexec_Exit:
Exit Function
autoexec_Err:
MsgBox...