Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Filter; 'Any part of field' (2003 (SP2))

    Just playing around with ideas & I wondered if it would be possible to bring up the normal Find dialogue box, with the 'Match' combo defaulting to "Any part of field"?

    I've got the standard code;
    DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Filter; 'Any part of field' (2003 (SP2))

    You can use SendKeys for this. See MSKB article ACC2000: How to Set Defaults for the Find and Replace Dialog Box (works for later versions too).

    Note: The accelerator keys used by SendKeys are language-dependent, the keystrokes mentioned in the article are only valid for the English language version of Access.

  3. #3
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Filter; 'Any part of field' (2003 (SP2))

    Not the elegant solution I expected, but what the heck; it works.

    Cheers

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Filter; 'Any part of field' (2003 (SP2))

    You can set the default in the Edit/Find tab of Tools | Options..., but that applies only to you, not to your users.
    There is no "elegant solution" since Microsoft hasn't exposed the options of the Find dialog in VBA.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •