Function SetMyOptions()
'disable Layout View for forms and reports
Application.SetOption "DesignwithData", False
End FunctionRun this function in an AutoExec macro.
How do I run a macro or code when the database starts?
Function SetMyOptions()
'disable Layout View for forms and reports
Application.SetOption "DesignwithData", False
End FunctionRun this function in an AutoExec macro.
Function SetMyOptions()Run this function in an AutoExec macro.
'maximize Access
Application.SetOption "maximized", True
End Function
Function SetMyOptions()If Not (CommandBars("Ribbon").Controls(1).Height < 100) Then
'minimize Ribbon
End FunctionRun this function in an AutoExec macro.
Function SetMyOptions()Run this function in an AutoExec macro.
'Open Nav Pane collapsed
CurrentDb.Properties("Startupshowdbwindow") = False
SendKeys ("{F11}")
SendKeys ("{F11}")
End Function