Results 1 to 5 of 5
  1. #1
    Jan22 is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    18

    Search form database

    Hello everyone!



    I'm working on a project here in Holland to design a database in which laser weld parameters can be put in. Now i'm building up a search form in which
    users can dynamicly search. The dynamic search is working:
    1. query created
    2. Textbox created (input)
    3. Unbound combobox (results)

    I have put in a code that compares the input with the qeury and then requery's it into the combox.
    This is working fine.

    But now I want to filter in specific columns to create a more reliable search form:

    I allready have put five different combo boxes in the form and pasted the code to filter.
    But the problem is that this query that I have created searches in all the columns for the answers instead of just one (what I need)

    I can create another query to search in a specific column but then my results would be in another combobox which is not something I want.

    Could anyone help me out with this?

    Here's a part of my database (search form, query, etc.)
    Attached Files Attached Files

  2. #2
    Jan22 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    18
    Updated my uploaded file.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Put all criteria on a single row so AND operator is invoked, not OR http://www.datapigtechnologies.com/f...earchform.html

    Not sure what issue is. If you want to input criteria into only one combobox and filter with that value, should work.

    Rather hard to test when data in table does not match the choices in comboboxes.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Jan22 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    18
    Thank you! are there more turitorals like that one?

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  2. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  3. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  4. Replies: 1
    Last Post: 04-20-2012, 03:16 AM
  5. Replies: 12
    Last Post: 03-22-2012, 02:48 AM

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