Results 1 to 4 of 4
  1. #1
    rashock is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2014
    Posts
    2

    Query Criteria for repeated Item

    Hi, I have a list of objects that should have 5 or more packages of rules

    Example:
    ITEM RULE
    118 RED
    118 BLUE
    118 YELLOW
    118 GREEN
    118 ORANGE



    Each item must have all the first 2 rules 1 time but the last 2 rules can be repeated
    If the Item dont have at least 1 time each rule then delete the item
    Last edited by rashock; 01-28-2014 at 03:10 PM.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Are you saying this is acceptable:

    118 RED
    118 BLUE
    118 YELLOW
    118 GREEN
    118 GREEN

    but not:

    118 RED
    118 RED
    118 YELLOW
    118 GREEN
    118 ORANGE
    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
    rashock is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2014
    Posts
    2
    Yes, you got it

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    This is criteria that is dependent on value(s) in other record(s) of same table. Always tricky. Look at this simple example https://www.accessforums.net/access/...ery-41081.html

    I think yours may be beyond capabilities of a query and will need a VBA procedure.
    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. Query Criteria Based on Item Selected???
    By P.Malius in forum Queries
    Replies: 5
    Last Post: 04-16-2013, 02:09 AM
  2. Parent Item / Child Item Not Saving Correctly Together
    By Evilferret in forum Programming
    Replies: 6
    Last Post: 08-24-2012, 02:30 PM
  3. Hi, How do we avoid repeated records?
    By radicrains in forum Queries
    Replies: 11
    Last Post: 11-04-2010, 03:00 AM
  4. Repeated rows in query-form
    By astraxan in forum Forms
    Replies: 2
    Last Post: 05-23-2010, 10:25 PM
  5. Combo Box without repeated values
    By SCFM in forum Access
    Replies: 2
    Last Post: 02-20-2010, 05:57 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