Results 1 to 3 of 3
  1. #1
    jlgray0127 is offline Competent Performer
    Windows 2K Access 2000
    Join Date
    Oct 2011
    Location
    Central Illinois
    Posts
    185

    Joins

    I have a table from an data warehouse that I am trying to tie to an access database I created.
    The fields I am trying to do the join in, it's kinda difficult...
    In the data warehouse, the field, say ID, represents 10 characters, including spaces... it's always 10, though.
    The value could be 1234568, 123456, or 1234567890. If there are only 5 characters, the other 5 characters are blank spaces.
    The table I am entering the data into, in my database, the values are not led off with blanks. We input 1234568, and it is only 7 characters.
    How can I make the two fields recognize eachother based on the Right characters. I never know how many "actual" characters there are.

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    Check out the Replace function, i.e. replace the " " in the warehouse id with "".

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Trim() would also work for you. It will also be independent of how many leading or trailing spaces you have. It just gets rid of all of them.

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

Similar Threads

  1. Need Help with Joins
    By usa_dreamer2002 in forum Queries
    Replies: 3
    Last Post: 01-31-2011, 10:58 AM
  2. SQL joins are whack
    By Dell in forum Access
    Replies: 6
    Last Post: 10-08-2010, 06:47 AM
  3. Joins - One PK to many FK - Acceptable?
    By Dega in forum Database Design
    Replies: 7
    Last Post: 05-08-2010, 07:52 AM
  4. Complex Joins??
    By objNoob in forum Queries
    Replies: 0
    Last Post: 03-16-2010, 02:42 PM
  5. Nested Joins
    By zephaneas in forum Programming
    Replies: 0
    Last Post: 11-10-2008, 11:49 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