First things First.
Create a module (name it as you like) and include a function called Startup
as follows in my sample code:
Option Compare Database
Public Function Startup()
This function changes the startutp options of MS-Access
'Created by Wally Pons (c) 2004
'Modified on 11-July-2005 @ 9:08 pm E.S.T.
'Cuts the confirm question on action queries
Application.SetOption "Confirm Record Changes", False
Application.SetOption "Confirm Action Queries", False
'Hides forms on the taskbar
Application.SetOption "ShowWindowsInTaskbar", False
'Sets the 4 digits for years <- This is what you wanted
Application.SetOption "Four-Digit Year Formatting", True
'Fix margins for reports as 0.25 for all
Application.SetOption "Left Margin", 0.25
Application.SetOption "Right Margin", 0.25
Application.SetOption "Top Margin", 0.25
Application.SetOption "Bottom Margin", 0.25
'Allows combo boxes to show 32,700 records (32,767 is the limit, you may use
it)
Application.SetOption "Show Values Limit", 32700
'Hides hidden objects (in case somebody forgot to put it back the way it was
before)
Application.SetOption "Show Hidden Objects", False
'Field selection behavior
'0 = Entire Field, 1 = Start of Field, 2 = End of Field
Application.SetOption "Behavior Entering Field", 0
'Enables Font switching
Application.SetOption "Enable Font Switching", True
'Substitution font
Application.SetOption "Substitute Font Name", "Arial"
'The name of the font you always want to use
Application.SetOption "Default Font Name", "Tahoma"
End Function
Then, create a macro called AutoExec and insert into it an action
called RunCode and way below, use the function name StartUp()
This is the best to work it, good luck!!!
WP