Results 1 to 3 of 3
  1. #1
    cdself is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Posts
    1

    Inner join not matching records even though they exist in both tables

    All -



    New here and I'm hoping you can help. I have an update query that puts tax rates into an invoice table based on a specific store number. The tax rates are held in a table based on a pass through query to our accounting system and has three fields - TaxID (which is the store number), TaxRate, and State. My invoice table has the weekly invoice information and the store number and I need to pull the tax rate for each record.

    My update statement works for 80% of the records, but there are specific stores that will not pull information even though the store number visually matches in both tables. Things I've tried:
    - Inserting trim/rtrim functions in all the make and pass through queries leading to this point
    - Manually keying the store number in both tables (hoping to eliminate any non-printables that maybe a trim didn't fix)
    - Troubleshooting with different input files (we get a new one from the vendor weekly). The same stores are the issue no matter which file

    Any ideas on what to try next? Any help would be greatly appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you want to provide db for analysis, 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.

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Since it's always the same stores, there are a couple of things you might look at -

    - Might there be an Upper Case / lower case issue. i.e. a comparison is case sensitive when you don't think it should be

    - A digit has been entered as a letter by mistake, or the reverse, e.g. O (capital "o") instead of 0 (zero) , or l (lower case L) instead of 1 (the number one)

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

Similar Threads

  1. Replies: 5
    Last Post: 10-18-2013, 05:03 PM
  2. Replies: 1
    Last Post: 10-24-2011, 08:01 AM
  3. how do i join records from two tables via a form
    By Kananelo in forum Programming
    Replies: 2
    Last Post: 02-24-2011, 02:01 AM
  4. Replies: 6
    Last Post: 02-10-2011, 07:09 AM
  5. Join queries that do not have matching field
    By Petefured in forum Queries
    Replies: 2
    Last Post: 05-04-2010, 11:19 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