Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Complete List of Arguments That You Can Use with the GetOption and SetOption Methods


View products that this article applies to.

This article was previously published under Q216888
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

↑ Back to the top


Summary

This article lists all of the arguments that you can use with the GetOption and SetOption methods.

↑ Back to the top


More information

The Microsoft Access 2000 Help file that lists string arguments of the GetOption and SetOption methods is not complete. The following table lists all of the possible arguments.

View Tab
Collapse this tableExpand this table
Option textString argument
Show
Status barShow Status Bar
Startup dialog boxShow Startup Dialog Box
New object shortcutsShow New Object Shortcuts
Hidden objectsShow Hidden Objects
System objectsShow System Objects
Windows in TaskbarShowWindowsInTaskbar
Show in macro design
Names columnShow Macro Names Column
Conditions columnShow Conditions Column
Click options in database windowDatabase Explorer Click Behavior
Dual font support
Use substitute fontEnable Font Switching
Substitute font nameSubstitute Font Name

General Tab
Collapse this tableExpand this table
Option textString argument
Print margins
Left MarginLeft Margin
Right MarginRight Margin
Top MarginTop Margin
Bottom MarginBottom Margin
Default database folderDefault Database Directory
Recently used file listEnable MRU File List
# of recently used file listSize of MRU File List
Provide feedback with soundProvide Feedback With Sound
Compact current databaseAuto Compact
Compact when database will shrink by this percentage or moreAuto Compact Percentage
Name AutoCorrect (MDB only)
Track name AutoCorrect infoTrack Name AutoCorrect Info
Perform name AutoCorrectPerform Name AutoCorrect
Log name AutoCorrect changesLog Name AutoCorrect Changes
New database sort order (MDB only)New Database Sort Order
Use four-digit year formattingFour-Digit Year Formatting

WebOptions Button (General tab)

Options with an asterisk (*) are listed for backward compatibility. With the exception of the Show Hyperlink Addresses In Status Bar option, all other options are hidden but can be set with the SetOption method.

For more information about Web options, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type DefaultWebOptions property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Collapse this tableExpand this table
Option textString argument
Hyperlink colorHyperlink Color
Followed Hyperlink colorFollowed Hyperlink color
Underline hyperlinksUnderline Hyperlinks
* Show Hyperlink Addresses In Status BarNote: Not valid for Microsoft Access 2000. Address shown in tooltips.
* HTML TemplateHTML Template
* Data Source NameData Source Name
* User NameUser Name
* PasswordPassword
* Server URLActive Server Pages URL
* Session TimeoutActive Server Pages Session Timeout

Edit/Find Tab
Collapse this tableExpand this table
Option textString argument
Default find/replace behaviorDefault Find/Replace Behavior
Confirm
Record changesConfirm Record Changes
Document deletionsConfirm Document Deletions
Action queries (MDB only)Confirm Action Queries
Show list of values in (MDB only)
Local indexed fieldsShow Values In Indexed
Local nonindexed fieldsShow Values In Non-Indexed
ODBC fieldsShow Values In Remote
Don't display lists where more than this number of records readShow Values Limit
Show list of values in (ADP only)
Records in local snapshotShow Values In Snapshot
Records at serverShow Values In Server
Don't display lists where more than this number of records readShow Values Limit

Keyboard Tab
Collapse this tableExpand this table
Option textString argument
Move after enterMove After Enter
Behavior entering fieldBehavior Entering Field
Arrow Key BehaviorArrow Key Behavior
Cursor Stops At First/Last FieldCursor Stops at First/Last Field

Datasheet Tab
Collapse this tableExpand this table
Option textString argument
Default Colors
FontDefault Font Color
BackgroundDefault Background Color
GridlinesDefault Gridlines Color
Default gridlines showing
HorizontalDefault Gridlines Horizontal
VerticalDefault Gridlines Vertical
Default column widthDefault Column Width
Default Font
FontDefault Font Name
WeightDefault Font Weight
SizeDefault Font Size
UnderlineDefault Font Underline
ItalicDefault Font Italic
Default cell effectDefault Cell Effect
Show animationsShow Animations

Forms/Reports Tab
Collapse this tableExpand this table
Option textString argument
Selection BehaviorSelection Behavior
Form templateForm Template
Report templateReport Template
Always use event proceduresAlways Use Event Procedures

Advanced Tab (MDB Only)
Collapse this tableExpand this table
Option textString argument
Ignore DDE RequestsIgnore DDE Requests
Enable DDE RefreshEnable DDE Refresh
Default Open ModeDefault Open Mode for Databases
Command-Line ArgumentsCommand-Line Arguments
OLE/DDE Timeout (Sec)OLE/DDE Timeout (Sec)
Refresh Interval (Sec)Refresh Interval (Sec)
Number Of Update RetriesNumber of Update Retries
ODBC Refresh Interval (Sec)ODBC Refresh Interval (Sec)
Update Retry Interval (Msec)Update Retry Interval (Msec)
Default Record LockingDefault Record Locking
Use Record Level LockingUse Row Level Locking

Advanced Tab (ADP Only)
Collapse this tableExpand this table
Option textString argument
DDE operations
Ignore DDE RequestsIgnore DDE Requests
Enable DDE RefreshEnable DDE Refresh
Default Max RecordsRow Limit
Save login and passwordSave Login And Password
Command-Line ArgumentsCommand-Line Arguments
OLE/DDE Timeout (Sec)OLE/DDE Timeout (Sec)

Tables/Queries Tab (MDB Only)
Collapse this tableExpand this table
Option textString argument
Default field sizes
TextDefault Text Field Size
NumberDefault Number Field Size
Default Field TypeDefault Field Type
AutoIndex On Import/CreateAutoIndex On Import/Create
Show table namesShow Table Names
Output all fieldsOutput All Fields
Enable AutoJoinEnable AutoJoin
Run PermissionsRun Permissions

To illustrate how you would programmatically apply one of these options, click Options on the Tools menu in Access 2000, and then click the View tab. Note the Click options in database window in the lower-left corner of the Options dialog. Each time that you open the database, you may want to ensure that all database objects are opened with a single-click instead of a double-click. To do so, you could call the following function from an Autoexec macro each time that the database is opened:
Function fncSetOption()
    'Use 0 (i.e. zero) for Single-click option.
    'Use 1 for Double-click option.
    Application.SetOption "Database Explorer Click Behavior", 0
End Function
				

↑ Back to the top


References

For more information about Autoexec macros, click Microsoft Access Help on the Help menu, type carry out an action when my database first opens in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

For additional information related to the <B QUOTES="YES" >Compact on Close option, click the article number below to view the article in the Microsoft Knowledge Base:
209769� ACC2000: Defragment and Compact Database to Improve Performance

↑ Back to the top


Keywords: KB216888, kbdta

↑ Back to the top

Article Info
Article ID : 216888
Revision : 2
Created on : 1/26/2005
Published on : 1/26/2005
Exists online : False
Views : 397