Advanced search ms access 2013

Anonymous
2016-05-25T21:57:40+00:00

I want to create an advanced search button that is connected to a dialogue form that searches for a specific criteria. When the user enters the criteria they don't have to press anything the matches just come up something like the following, where the original form has a advanced search buttonWhich then goes on to produce a connected form that shows the criteria and related records according to the letters of first and last names of the people in the database.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2016-05-25T23:31:02+00:00
    0 comments No comments
  2. Anonymous
    2016-05-26T00:04:43+00:00

    I dont want a combo box though I would like a text box that users can enter values into

    0 comments No comments
  3. Anonymous
    2016-05-26T00:37:05+00:00

    Hmm, them something like...

    Dim strSQL As String

            strSQL = "SELECT YourField, YourField " & _

                            "FROM YourTable " & _

                                "WHERE TheFieldYouWantToSearchOn Like '*" & Me.NameOfTheControlOnYourForm.Text & "*')) " & _

                                    "ORDER BY FieldFromYourTableOptional DESC"

    In the On_Change Event of your Text Box Control on your Form.

    0 comments No comments
  4. ScottGem 68,775 Reputation points Volunteer Moderator
    2016-05-26T11:36:21+00:00

    Ivy, Why not use a combo? the user can still just type what they want, but using a combo can ensure they type a valid value. Plus the combobox wizard will create the search control for you.

    0 comments No comments