Search form including a drop down box, keywords and a serach button

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default Search form including a drop down box, keywords and a serach button

    I'm trying to create a custom search box in MS Access 97. I'd like
    there to be a drop down list of all the fields, and then a text box
    for the user to enter their keyword. Alongside there would be a 'Go'
    button which would run the search for the keyword in the selected
    field...

    I know I will have to create a form with a combo box, a text box and
    then SQL query but I'm not sure how to put it all together.

    Please help
    Donna Grant Guest

  2. Similar Questions and Discussions

    1. Including an swf in a tabbed form
      Hi. With the tabbed <cfform> can I include my own swf file as the content of each of the tabs? EG: EG: <cfform skin="haloBlue"...
    2. Creating a serach form
      I wish to create search page and results page for searching an Access Database using asp. The Databse has several tables with several relationships...
    3. MySql search question. Searching on keywords
      How do site searches work? I want to create a MySQL database with a field called "keywords". Then a form with a search phrase input box. I...
    4. Form Search Button
      Hi I have almost finished a database and it does everything I want it to at the moment except one thing. On the Forms that I have made, I have...
    5. What's the CDML code to highlight the keywords in the search result page please?
      Hello,group Would anyone know how to write CDML code to highlight the keywords (not in different font color)in the search result page please? ...
  3. #2

    Default Search form including a drop down box, keywords and a serach button


    First of all, give everything a name. (The form, the text
    box, combo box and button).

    Now, create a query in query builder that shows all the
    fields you want to show, but also has a WHERE clause that
    looks for the value in your drop down box and text box to
    get the field nams and criteria (instead of hardcoding).

    Save and name this query (eg query1)

    Then, add an event to the on click of your button which is

    docmd.openquery(query1)

    OR... you could have another form which instead of being
    linked to a table is linked to the query and it will then
    display the results in text boxes.

    Hope this points you in the right Direction





    >-----Original Message-----
    >I'm trying to create a custom search box in MS Access 97.
    I'd like
    >there to be a drop down list of all the fields, and then
    a text box
    >for the user to enter their keyword. Alongside there
    would be a 'Go'
    >button which would run the search for the keyword in the
    selected
    >field...
    >
    >I know I will have to create a form with a combo box, a
    text box and
    >then SQL query but I'm not sure how to put it all
    together.
    >
    >Please help
    >.
    >
    Steve Ward Guest

  4. #3

    Default Re: Search form including a drop down box, keywords and a serach button

    There is a QBF program for Access 97 that provides "Filter by Form"
    functionality. Download it from:
    [url]http://www.hammerdata.com/Newsgrp/resources/downloads.htm#Q[/url]

    "Steve Ward" <steve.ward@excelaid.com> wrote in message
    news:7fa801c35a91$9644b9b0$a001280a@phx.gbl...
    >
    > First of all, give everything a name. (The form, the text
    > box, combo box and button).
    >
    > Now, create a query in query builder that shows all the
    > fields you want to show, but also has a WHERE clause that
    > looks for the value in your drop down box and text box to
    > get the field nams and criteria (instead of hardcoding).
    >
    > Save and name this query (eg query1)
    >
    > Then, add an event to the on click of your button which is
    >
    > docmd.openquery(query1)
    >
    > OR... you could have another form which instead of being
    > linked to a table is linked to the query and it will then
    > display the results in text boxes.
    >
    > Hope this points you in the right Direction
    >
    >
    >
    >
    >
    >
    > >-----Original Message-----
    > >I'm trying to create a custom search box in MS Access 97.
    > I'd like
    > >there to be a drop down list of all the fields, and then
    > a text box
    > >for the user to enter their keyword. Alongside there
    > would be a 'Go'
    > >button which would run the search for the keyword in the
    > selected
    > >field...
    > >
    > >I know I will have to create a form with a combo box, a
    > text box and
    > >then SQL query but I'm not sure how to put it all
    > together.
    > >
    > >Please help
    > >.
    > >

    Con Giacomini Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139