Results 1 to 2 of 2
  1. #1
    punna111 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    16

    Red face Match two words in inner join

    Hi All,

    Please find the attachment.
    In sheet 1 & 2 you have a tables.
    I want to match Zip field from sheet 1 to sheet 2 (this is = match)


    but where we go to name match i want match sheet 2 name1 & Name 2 that contains in sheet 1 Name field.
    These three should match. Just leave about Z no.
    I need a query for this. I am trying from 1 week but not getting.Book1 (2).zip

  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,641
    Why do you need to join names? Is Zip unique in both tables?

    Try:

    SELECT Table1.*, Table2.*
    FROM Table1, Table2
    WHERE (((Table1.Name) Like "*" & [Table2].[Name1] & "*") AND ((Table1.Zip)=[Table2].[Zip]));
    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.

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

Similar Threads

  1. Replies: 4
    Last Post: 04-10-2014, 06:36 AM
  2. Replies: 6
    Last Post: 11-19-2013, 01:38 AM
  3. Replies: 16
    Last Post: 03-13-2012, 03:47 PM
  4. Replies: 8
    Last Post: 11-04-2011, 06:52 AM
  5. Replies: 1
    Last Post: 12-02-2010, 04:54 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