Results 1 to 4 of 4
  1. #1
    Rriemer is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    7

    Case Sensitive Inner Join

    I need to update records in one table with info from another inner joined by an ID field which is case sensitive. Additionally i need to drop the last three digits from the ID on one table.

    I used this select query to test and it is not working, any ideas?

    SELECT Copy_All_Amhsi_combo.acct_id, jn179238.sfaccid, Copy_All_Amhsi_combo.VIS_N, jn179238.idnumber
    FROM JN179238 INNER JOIN Copy_All_Amhsi_combo ON Copy_All_Amhsi_combo.acct_id = left(jn179238.sfaccid,15)
    WHERE Asc([Copy_All_Amhsi_combo].[acct_id])=Asc([jn179238].[sfaccid]) ;

  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,953
    Asc() function can act on only 1 character. Example:

    Asc("a") returns 97

    Asc("abc") also returns 97

    Did you try without the WHERE clause?

    Review https://support.office.com/en-us/art...rs=en-US&ad=US
    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
    Rriemer is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    7
    Yes I tried a few different ways. Honestly the asc i believe wont work because the string is 15 characters and the change of case could be anywhere. (Note: I am joining on Salesforce ID's)

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,737

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

Similar Threads

  1. Validate password case sensitive
    By puuts in forum Programming
    Replies: 3
    Last Post: 01-21-2014, 12:12 PM
  2. How to set a case sensitive criteria for a query
    By LionelSpratt in forum Queries
    Replies: 7
    Last Post: 04-30-2013, 07:41 PM
  3. case sensitive join query
    By rbrem in forum Queries
    Replies: 5
    Last Post: 08-09-2012, 02:59 PM
  4. Textbox Case Sensitive
    By cbrsix in forum Programming
    Replies: 19
    Last Post: 06-25-2012, 10:52 AM
  5. is access case-sensitive?
    By pen in forum Programming
    Replies: 1
    Last Post: 04-07-2009, 05:13 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