Results 1 to 2 of 2
  1. #1
    jburg is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    1

    Question How to completely ignore a record when it is ignored once in the query results


    Dear developers,
    I am developing an equipment database where some of my coworkers can add projects and assign the necessary equipment to the project. One of the main features of such a system is of course to see if a piece of equipment is available for a project. I have made an application involving three databases: a project database, an equipment database and a transactions database (a column linked to the ID of the project database and a column linked to the equipment database). When a project is added or changed, the user will have the option to click a button in order to assign equipment to the project via a form. In this form I would like to have a query which only shows the available equipment at the time of the project. Meaning that if a piece of equipment does not have transactions between the start date and the end date of the period, the piece of equipment is available to use.
    I wrote a query which handles this, however, I have one problem with this query and after searching almost the complete internet, I still haven't found a solution. The problem is that if the query runs it checks for transactions between the start and end date of the project, if there are no transactions, the piece of equipment is shown as available, as expected. If there is only one transaction for that particular piece of equipment and it is between the start and the end date of the project the piece of equipment is not shown, also as expected.
    However if the piece of equipment has multiple transactions where one is between the start and the end date of the project and there is at least one (historic) transaction not between the start and the end date of the project, the piece of equipment is still shown as available for the project. My question is if anyone knows a solution for this, meaning that if a piece of equipment is ignored once because at least one transaction is between the start and end date of a project, the particular piece of equipment is ignored completely and is not shown available.
    I have searched a lot and tried a lot and you guys are basically my last hope for this function. I hope you are able to give me some tips or workarounds to solve this.
    Thanks in advance for your time and effort,
    Kind Regards,
    Jordy

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    Could you provide db for analysis and testing? Following instructions at bottom of my post.
    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: 4
    Last Post: 04-27-2017, 07:52 AM
  2. Replies: 5
    Last Post: 09-05-2016, 09:07 AM
  3. How to ignore duplicates in a query
    By badmem in forum Queries
    Replies: 3
    Last Post: 07-19-2016, 04:15 PM
  4. query that will ignore a certain word
    By chr1stoper1 in forum Queries
    Replies: 2
    Last Post: 03-16-2015, 10:51 AM
  5. Replies: 1
    Last Post: 12-17-2013, 01:53 AM

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