Results 1 to 6 of 6
  1. #1
    95DSM is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    37

    Seach table from within a form

    I would like to create a form that has a table or list embeded in it. At the top are certain attributes that I can search by and when I click the search button the list/table sorts the names entered. Attached is a picture to help you fully understand my needs.



    I have been working with this in design view and searching the properties box and I can find a way to do it.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    One way is demonstrated in the sample db in this FAQ:

    http://www.baldyweb.com/BuildSQL.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    95DSM is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    37
    Is the only way to do this with some VB programming? I haven't been into programming for about 2 years now and I'm really rusty. Thanks for your help so far.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Well, you could use a query with criteria like:

    Like "*" & Forms!FormName.ControlName & "*"

    or this technique:

    http://www.mvps.org/access/queries/qry0001.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    95DSM is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    37
    I looked through the information you posted but nothing really stood out on what I needed to do. Some sort of terminology or process would be very useful. I could be completely blind and just missed it though. Here's a pic of my current form and what I need it to do.

    I would like to put a keyword like Dell in the textbox. Then I would select a category that would apply best (They are checkboxes currently, but will be changed to radi buttons). In this case it would be Manufacturer. Now when I press search I would like to see the table below fill up with enteries that only list the manufacuter named Dell. No HP or Compaq. I dont want to be able to edit, delete, or add additional items. This will be for viewing purposes only. Afterwards I would use the reset button and clear the table back to original settings.

    Now I'm not asking for someone to write me code. I just would like to know different ways to do this. Maybe using a query, an embeded filter, or etc. What would be some terms I could use to find some examples?

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The db in the first link would be how I'd go, because of the checkbox. You're dynamically changing the field to be filtered, so I'd build SQL in VBA.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 03-08-2010, 02:32 AM
  2. Replies: 0
    Last Post: 02-24-2010, 12:56 AM
  3. Replies: 9
    Last Post: 02-19-2010, 12:07 PM
  4. Use form to populate a table from another table
    By sammer021486 in forum Forms
    Replies: 3
    Last Post: 09-28-2009, 09:06 AM
  5. Replies: 0
    Last Post: 10-04-2008, 11:14 PM

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