Results 1 to 8 of 8
  1. #1
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36

    Showing information in report from query where a field is NOT satisfied


    I am trying to create a report that will show me any record that does NOT have a specific field met. I have a basic query set up to display the information desired, but need it to refine the search to just the records missing a specific part in a different table. The missing information does not have to be shown in the report. Any help is appreciated.

  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,929
    Do these tables have PK/FK relationship? If not, maybe a DLookup will accomplish what you need.

    Can't be more specific without knowing data structure.
    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
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    I know its been a while for me to respond but yes the tables have fk. I have 3 tables; table 1 has relationship with 2 and 2 has relationship with 3. I need to show all files that are missing one part of table 3 but with data from table 1 (like jobs still in progress). Is there any way to use "iif" in this situation? and if so how would i set it up?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Which table is primary and which is dependent?

    What 'one part'? How many 'parts' should there be?

    Provide example data. If you want to provide db, follow 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.

  5. #5
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    in table 1 i have jobs, part number, price,etc.
    Table 2 has fkjobs, fkinvoice number
    Table 3 has invoice number, invoice date, and other misc data.
    every job has just a basic number to it but only completed jobs have an invoice. table 2 connects the jobs with an invoice. So, my goal is to create a report with this information of only the jobs WITHOUT an invoice to see what jobs are ongoing.

    As for the 'how many part' question, there isnt a set number of parts. i was just trying to simplify things but it just made it worse. i only meant that there is other data in these tables that is irrelevant to my problem.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Sounds like a Find Unmatched query. There is a wizard for that.
    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.

  7. #7
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    so for the information i have in my tables above, which two tables would i use? i am not familiar with this type of query

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Really need a table that lists JobID as a unique value. Is that table 1?

    You want to know which jobs do not have invoice? Try using tables 1 and 2.
    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: 2
    Last Post: 04-08-2015, 11:01 AM
  2. Showing select information
    By lithium in forum Forms
    Replies: 51
    Last Post: 12-10-2013, 09:10 PM
  3. Replies: 1
    Last Post: 01-03-2013, 03:13 PM
  4. Replies: 1
    Last Post: 09-12-2012, 12:44 PM
  5. Field ID Showing on report
    By Lois in forum Reports
    Replies: 3
    Last Post: 10-28-2011, 08:04 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