Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Cincinnati, Ohio
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Set Find parameters for searching (2003)

    In one of our applications users do a lot of find/searching within a form. Is there a way to set the value for the "Look In" and "Match" parameters so the user doesn't have to bother with them? I would like to set Look In to the current form and Match to Any part of field. Can this be done? Thank you.

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

    Re: Set Find parameters for searching (2003)

    You can use SendKeys for this: see MSKB article ACC2000: How to Set Defaults for the Find and Replace Dialog Box.

  3. #3
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Cincinnati, Ohio
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Set Find parameters for searching (2003)

    Thanks Hans. That was what I was hoping for. This is what worked:
    Private Sub cmdFindwithParameters_Click()
    SendKeys "%ha%n ", False
    DoCmd.RunCommand acCmdFind
    End Sub

Posting Permissions

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