ACC: How to Set Defaults for the Find Dialog BoxID: Q120912
|
Moderate: Requires basic macro, coding, and interoperability skills.
This article describes how to invoke the Find dialog box with different
default settings.
When you click Find on the Edit menu in Form view, the Find dialog box
appears with the following default settings.
In Microsoft Access 1.x and 2.0 In Microsoft Access 7.0 and 97
------------------------------- ------------------------------
Where: Match Whole Field Search: All
Search In: Current Field Match: Whole Field
Match Case: <clear> Match Case: <clear>
Search Fields As Formatted: <clear> Search fields as formatted: <clear>
Direction: Down Search only current field: <checked>
In Microsoft Access 97:
SendKeys
Keystrokes: %ha%n
Wait: No
RunCommand
Command: Find
In Microsoft Access 7.0, 2.0 and 1.x:
SendKeys
Keystrokes: %ha%n
Wait: No
DoMenuItem
MenuBar: Form
MenuName: Edit
Command: Find
Option Setting Keystrokes
-----------------------------------------------------------
Match Any Part of Field %ha
Match Start of Field %hs
Search Only Current Field <cleared> %e
Match Case <selected> %c
Search Fields as Formatted <selected> %o
Search Up %ru
Search Down %rd
Option Setting Keystrokes
-----------------------------------------------------------
Where Any Part Of Field %ha
Where Start Of Field %hs
Search In All Fields %l
Match Case <selected> %s
Search Fields As Formatted <selected> %o
Direction Up %u
In Microsoft Access 97:
SendKeys
Keystrokes: %hs%e%ru%n
Wait: No
RunCommand
Command: Find
In Microsoft Access version 7.0, 2.0 and 1.x:
SendKeys
Keystrokes: %hs%e%ru%n (%hs%l%u%n in version 2.0 and 1.x)
Wait: No
DoMenuItem
MenuBar: Form
MenuName: Edit
Command: Find
For more information about the Find command, search the Help Index for
"Find," and then "Finding data using Filters" or ask the Microsoft
Access 97 Office Assistant.
For more information about the SendKeys action, search the Help Index
for "SendKeys," and then "SendKeys Statement" or ask the Microsoft
Access 97 Office Assistant.
For more information about running macros, search the Help Index for
"Macros," then click "Running," and next click the topic "Run a Macro."
You can also ask the Microsoft Access 97 Office Assistant.
Keywords : FmsHowto
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: April 7, 1999