• Using the ‘Find Dialog Box’ on a Form (Access 97)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Using the ‘Find Dialog Box’ on a Form (Access 97)

    • This topic has 2 replies, 2 voices, and was last updated 23 years ago.
    Author
    Topic
    #370133

    I have created a runtime version that has a custom menubar on a form. One of the choices for the user is the “find” function. When the “Find Dialog Box” is opened, the default value for the Match: option is “Whole Field”. How can I change the default value to be “Any Part of Field”? Is this possible?

    Viewing 0 reply threads
    Author
    Replies
    • #584704

      Have a look at this thread about more or less the same question.

      You will have to create a custom CommandBarButton that calls a public function in a module. You must set the find options by either using SendKeys (not recommended, it’s flaky and language dependent) or by issuing a dummy search before opening the find dialog box. For example:

      ‘ Search for something innocent in order to set options
      DoCmd.FindRecord ” “, acAnywhere, False, acSearchAll, True, acCurrent, True
      ‘ Open Find dialog box
      RunCommand acCmdFind

      You can look up FindRecord in the online help to learn about the arguments to FindRecord.

      • #584722

        Thanks for the help – that got me back on track.

    Viewing 0 reply threads
    Reply To: Using the ‘Find Dialog Box’ on a Form (Access 97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: