Results 1 to 3 of 3
  1. #1
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228

    Question Filtering criteria dealing with max and min fields.

    Hello All,



    I have a table called BOAT_ID with the following columns:

    Min_Size, Max_size, Cut_size and LeadType. First three are numbers, last is text.

    I have a cbo cbo_Partnumber in a form that the operator selects the part number from.
    it automatically fills in text boxes with info like size, cutsize and lead.

    my BOAT ID table only contains ID names for "Boats" used in our process. this table is fixed in size.

    My goal: To have a a query called qry_BoatID that will filter table BOAT_ID based on the text boxes mentioned above. I am able to filter for lead type, and cut size.

    My Problem: i have an issue filtering by min and max size.

    what kind of criteria can i create that will be something like "ONLY SHOW RECORDS OF BOATID WHERE:

    StackSize Text Box is between Min_Size and Max_Size.
    i suppose i am mostly asking for help with the syntax, and where this should go in my query.


    Thank you,
    Jorge

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Create a field in query with an expression:

    CriteriaInRange: [Forms!formname.StackSize] BETWEEN [Min_Size] AND [Max_Size]

    Then criteria under this constructed field: True
    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.

  3. #3
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    Thanks June7, this worked perfectly.

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

Similar Threads

  1. Filtering with Criteria in SQL Query?
    By Huddle in forum Reports
    Replies: 44
    Last Post: 10-21-2013, 02:11 PM
  2. Replies: 1
    Last Post: 10-10-2012, 03:33 PM
  3. Replies: 5
    Last Post: 08-07-2012, 10:12 PM
  4. Replies: 3
    Last Post: 01-20-2012, 04:46 PM
  5. Search By Criteria - Flexible Criteria Fields
    By lilanngel in forum Access
    Replies: 0
    Last Post: 03-16-2011, 06:25 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