Results 1 to 5 of 5
  1. #1
    ShadeRF is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    24

    Text Box Filter Question

    Is it possible to allow filter multiple items with a single text box? For instance: I want to allow them to filter by Invoice #. Is it possible to input multiple Invoice #'s into a single text box and return those Invoice #s? I don't really want to use a combo box.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    well not really - perhaps is the best answer.... will the human separate those by a space, comma, semi colon? ...that's a rhetorical question about really how disciplined will your users actually be......

    one can definitely manage with vba the parsing of their entry and create a dynamic sql string - but again the starting point has to be some structure to their input....you probably are best off using separate text boxes.....

    one could make a parameter prompt in the query itself - - and try entering multiple values with an OR

    Not sure it helps.

  3. #3
    ShadeRF is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    24
    Seperating with a comma would be no problem as this is actually their preferred method of entry.

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    perhaps I am cynical - but the human still is highly variable

    this,that
    this, that
    this ,that

    are all different.....you can use String commands to chop it up into separate words, trim out spaces at end, and then build an sql statement....will be tricky especially if one doesn't know how many words might be there....using string manipulation will need to find the commas,count spaces, etc etc..........

  5. #5
    ShadeRF is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    24
    The search field is only for numbers, which are typically 7 digits in length.

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

Similar Threads

  1. Filter List box using text box
    By oakoen in forum Forms
    Replies: 3
    Last Post: 12-13-2010, 05:00 PM
  2. Combo-Box Filter/Autocomplete Question
    By jhcarrell in forum Forms
    Replies: 4
    Last Post: 11-02-2010, 12:46 PM
  3. Filter by combo box & text box?
    By sparkyboy2406 in forum Forms
    Replies: 2
    Last Post: 02-24-2010, 04:20 PM
  4. Filter non-text data
    By bdriscoll in forum Access
    Replies: 2
    Last Post: 09-25-2009, 05:49 PM
  5. Newbie filter question
    By benplace in forum Access
    Replies: 1
    Last Post: 12-03-2005, 08:31 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