Results 1 to 10 of 10
  1. #1
    Soupy8728 is offline Novice
    Windows 11 Access 2016
    Join Date
    Mar 2024
    Posts
    13

    Access query to find missing alphanumeric data


    Our company has a lot of warehouses with a lot of inventory. An example of a location would be A01A1, A01A2, A01A3, A01A4 where A01 would be a floor space and inventory would be stacked 4 high on top of each other. My question is what if A01A3 gets left out during inventory count? How can I query to find these missing locations? Hope this makes sense. Thank you.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Sorry, accidentally duplicated 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.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Explore Find Unmatched query. Access has a build wizard for that.

    Or maybe:

    SELECT * FROM Locations WHERE LocationID NOT IN(SELECT LocationID FROM Inventory WHERE InventoryID=someinput)
    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.

  4. #4
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    You are you saying in your table they might omit entering A01A3 but since you have an A01A4, you know there should be an A3? So you want the program to tell you A3 is missing?

  5. #5
    Soupy8728 is offline Novice
    Windows 11 Access 2016
    Join Date
    Mar 2024
    Posts
    13
    Yes exactly and we call this a “floater” because if something is in A4, we know something should be in A3 but the data didn’t get captured. This is just a tiny example. We have over 9000 locations that this could be affecting. Thank you.

  6. #6
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    What is your table structure, do you have a table for Floors and a table for Stacks? Are there any finite conditions like you will never have more then 5 stacks for one floor, etc? You could also add in logic to prevent someone missing a stack on entry maybe.

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by Soupy8728 View Post
    Yes exactly and we call this a “floater” because if something is in A4, we know something should be in A3 but the data didn’t get captured. This is just a tiny example. We have over 9000 locations that this could be affecting. Thank you.
    I'm not sure that I really understand the data here but have a look at the attached db. The query named "Query1 Without Matching T2" would list the "Floaters"
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    If we have provided a solution, please mark this thread as solved. (top of the thread under "Thread Tools"
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  9. #9
    Soupy8728 is offline Novice
    Windows 11 Access 2016
    Join Date
    Mar 2024
    Posts
    13
    You provided a solution to part of my problem. Thank you.

  10. #10
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    It would help if you upload a screenshot of your Relationship Window.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

Similar Threads

  1. Replies: 2
    Last Post: 10-28-2018, 07:39 PM
  2. Find missing data
    By Homegrownandy in forum Queries
    Replies: 8
    Last Post: 06-07-2017, 05:49 AM
  3. Need query to find missing field data
    By narendrabr in forum Queries
    Replies: 3
    Last Post: 01-22-2013, 12:48 PM
  4. Find Query Wizard Missing
    By Edgy in forum Queries
    Replies: 1
    Last Post: 03-26-2011, 09:37 AM
  5. How to find missing date query
    By twhite in forum Queries
    Replies: 8
    Last Post: 09-02-2010, 02:42 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