Results 1 to 2 of 2
  1. #1
    Jaik is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2016
    Posts
    33

    How can I use multiple text box for filtering?

    In my form there are customer Id text box and customer sub Id text box.


    So I want to make them as filters and currently I have something like this
    Code:
    WHERE (((History.[CustomerID]) Like "*" & [Forms]![FORM_CUST]![CustomerIDT] & "*") and ((History.CustomerSubID) Like "*" & [Forms]![FORM_CUST]![CustomerSubIDT] & "*"));
    However, seems like only Customer ID is working and if I type anything into the CustomerSubID text box, it ignores the input.
    Is there any way to troubleshoot this issue?


    Thank you!

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    It is usually easier to filter the form:
    Me.Filter="CustomerID=" & me!CustomerID & " AND CustomerSubID=" & me!CustomerSubID
    Me.FilterOn=True
    Me.Requery

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

Similar Threads

  1. Replies: 6
    Last Post: 02-12-2016, 07:20 PM
  2. Long text or memo box filtering
    By data808 in forum Access
    Replies: 5
    Last Post: 02-12-2015, 04:55 PM
  3. Forms and filtering with text boxes
    By jlgray0127 in forum Forms
    Replies: 1
    Last Post: 01-16-2012, 02:12 PM
  4. Replies: 1
    Last Post: 08-09-2011, 11:13 AM
  5. Filtering by text or date range
    By Ashe in forum Forms
    Replies: 5
    Last Post: 03-07-2011, 03:00 PM

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