default the find box to match "Any part of field"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matthardwick
    New Member
    • Apr 2008
    • 19

    default the find box to match "Any part of field"

    Is there a way to make the find box (Ctrl+F) default to match "Any part of field" instead of "Whole field".

    Thanks in advance.

    Matt.
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    Choose Options from the Tools menu.

    On the Edit/Find tab, set:

    Default find/replace behavior

    to:

    General Search

    You can set this programmaticall y with:

    Application.Set Option "Default Find/Replace Behavior",1

    But this is problematical in that it doesn't take effect until Access is closed then opened again. If someone should manually change the setting on a given machine, in any module of MS Office, it would have to be reset by your Access app again, once again being closed and reopened to take effect.

    Welcome to Bytes!

    Linq ;0)>

    Comment

    • run1492
      New Member
      • Oct 2007
      • 1

      #3
      Hey, thanks ! it worked for me in Access 2010. By creating a macro called AutoExec with the instruction RunCode and passing it the name of the function (inside a module) that has your code.

      Comment

      • RaceShooter
        New Member
        • Dec 2020
        • 3

        #4
        Jump ahead 10 years to Access Microsoft 365.
        Open up the database without even opening a table.

        Top row Select Database Tools
        "what do you want to do?" type OPTIONS - hit enter
        Select Client Settings->Default Find/Replace Behavior
        Select the General Search radio button
        Press OK.

        You have changed that default that not everyone would choose. AKA -driving them nuts!
        Last edited by RaceShooter; Dec 29 '20, 05:26 PM. Reason: misspelled word

        Comment

        • twinnyfo
          Recognized Expert Moderator Specialist
          • Nov 2011
          • 3662

          #5
          Race Shooter,

          NICE!!! Never thought to look there!

          Comment

          • NeoPa
            Recognized Expert Moderator MVP
            • Oct 2006
            • 32662

            #6
            Originally posted by RaceShooter
            RaceShooter:
            You have changed that default that not everyone would choose. AKA -driving them nuts!
            That's a very valid consideration - especially for changing options in code of course.

            However, in this case instructions are offered to allow the user to make the choice consciously and with full awareness of what they're doing. If they don't like it then they simply choose not to do it.

            The OP (Original Poster) has asked for help in order to make this change. The help was provided for them. It may also help countless others looking for the same thing. Anyone who chooses to follow these instructions, in spite of not actually wanting the same setup, needs help far beyond the scope of this website to handle wouldn't you say?

            Comment

            • TheoKrane
              New Member
              • May 2023
              • 1

              #7
              Very useful

              Thanks for the office 365 explanation, I needed this badly :)

              Comment

              Working...