Results 1 to 11 of 11
  1. #1
    In need is offline Novice
    Windows 2K Access 2007
    Join Date
    Mar 2012
    Posts
    6

    Creating a search button for key words

    Hi there,
    I havent used access before and need a easy way to seach through 1300 records i have created in a form. Each record has 6 criteria, some with drop down options. I would like to create a button that when you type into a box and click this button it will search all my records and bring up a list of all the records containing the key words searched for.
    I am working on Access 2000, hope this aint to much trouble


    Cheers for your help in advance

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    You probably want to do this in a query. Here is a link that may help you set up a query to do that type of search.

    http://www.datapigtechnologies.com/f...earchform.html

    This is not exactly what you are looking for, but it should help you to see how to get there.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  4. #4
    In need is offline Novice
    Windows 2K Access 2007
    Join Date
    Mar 2012
    Posts
    6
    alansidman
    I have worked my way through the tutorial you have sent me, though i am having issues with it working and dont understand what i have done wrong.
    When creating the command button for clear parameters (command3) i get a response of; Compile error: Method or data member not found
    With it opening up the visual basic form, highlighting 'Private Sub Command3_Click()
    When clicking Command4, my run query button it opens another box called 'Enter Parameter Value' with all the options in my form and then doesn't bring up any of the records.
    Do you know what i need to do to resurect these problems?

  5. #5
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Without seeing what you have done specifically, it is difficult to diagnose. Perhaps you should upload a sanitized (no confidential information) copy of your data base with a limited number of records so that we can analyze it.

  6. #6
    In need is offline Novice
    Windows 2K Access 2007
    Join Date
    Mar 2012
    Posts
    6
    I there another way of uploading the form apart from using the attach button on these responses as i cant seem to get the file small enough as only allows 500kb!!

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    First do a compact repair of your database; then make a zip file to compress the file size; attach the zip.

    To attach use the Go Advanced button.

  8. #8
    In need is offline Novice
    Windows 2K Access 2007
    Join Date
    Mar 2012
    Posts
    6
    Attachment 7439

    This is what im trying to work on
    Cheers
    Attached Files Attached Files

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    It isn't clear what your form is about/doing. I'll look at it more later.

    My first thought concerns naming convention - Don't use names with embedded spaces or special characters ">?\/ etc.

    What exactly do you want to search on?
    You might consider using a defined list of values you'll use to attribute to a photo.

    You realize there are no photos -it's not important at this point - you may want to add some to your zip for completeness.

  10. #10
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    I noticed that your form is not named the same as the reference in the query. In the query you call the form formfind, yet the form is only named find. Secondly, you did not name the unbound text box for rivers yet you reference as qriver1 in your query. You also need to add a me.requery line to the clear filter command button. This should get you started.

    Alan

  11. #11
    In need is offline Novice
    Windows 2K Access 2007
    Join Date
    Mar 2012
    Posts
    6
    Some how i have got the Clear command to work now, not sure how as changing the names and putting Me.requery in wasn't working but after closing and opening it up again it is now working without Me.requery!!

    I have renamed the query to just find rather than findform which i had before and named my river textbox qriver1. However it is still not working, although it occasionally brings up the same 3 records!

    Photo wise i realise i haven't included any this is as they are on a external hard drive so they can be accessed on different computers.

    CheersPhoto Database.zip

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 12
    Last Post: 03-22-2012, 02:48 AM
  2. creating a search form
    By foxtet in forum Forms
    Replies: 4
    Last Post: 08-06-2011, 06:08 AM
  3. Creating a search function
    By jlclark4 in forum Forms
    Replies: 7
    Last Post: 12-30-2010, 02:03 PM
  4. Creating a Search Field
    By SKUPenn in forum Programming
    Replies: 1
    Last Post: 01-28-2010, 08:39 PM
  5. Replies: 3
    Last Post: 01-14-2010, 08:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums