Results 1 to 3 of 3
  1. #1
    Stillgate is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Sep 2018
    Posts
    2

    First Time User, please help with Query


    I have a query with 2 tables (Table A and Table B.) My join properties between table A and B is the "Case No" column. In table A, the "Case No" column has 10 digits. All the cases end in 003. In Table B, its only a 7 digit number (it doesnt have the 003 added.)

    How can I create a criteria that will remove the 003 so both tables and merge?

    Table A
    Case No: F123456003

    Table B
    Case No: F12346

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Use join criteria
    Left([Table A].[Case No],7)=[Table B].[Case No]

    Recommend you don't use spaces in table or field names.
    Also if those are your real table names, replace with meaningful names.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    meisaka is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2018
    Posts
    4
    In the query of table A, you can create a new field and use this "Trimmed Case No: Left([Case No],6)"
    and in a new query, match your "trimmed case No" to table B "Case No"

    *Trimmed Case No" - can be any names you want to use.

    hope it helps

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

Similar Threads

  1. first time user - help with setup
    By jhill007 in forum Access
    Replies: 4
    Last Post: 01-31-2018, 02:52 AM
  2. Run-time error 2501 for one user on one PC
    By TheBradish in forum Access
    Replies: 11
    Last Post: 06-13-2017, 04:02 AM
  3. Replies: 6
    Last Post: 11-08-2016, 07:49 AM
  4. Stamp date, time and user?
    By ricanos in forum Modules
    Replies: 1
    Last Post: 04-06-2016, 08:41 AM
  5. 2010 Runtime, 1st Time User Needs Help
    By bobduncan43 in forum Access
    Replies: 1
    Last Post: 01-17-2013, 01:19 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