Results 1 to 4 of 4
  1. #1
    hardtarget is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    3

    look for certain data from another table

    Hi,



    i have 2 tables. Table A contains the full company name and Table B contains a shortened form of the company name.

    e.g.

    Table A
    ABC Company Limited
    Big Ball Company
    Big Mac Ltd

    Table B
    ABC Company
    Big Ball
    Big Mac

    What I want to do is run a query that looks for the data in Table B against Table A. Normally you could do an inner join query and find exact matches but I cant do this in this case. So the query would look for the words "ABC Company" in Table A

    Thanks in advance.

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    The big question is why do you have two set of company names in your database?

    Which is the more accurate?
    What happens if you have similar sounding names that when shortened are the same?

    You should be using Primary keys anyway not textual descriptions.

    David

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Look at the InStr() function.

  4. #4
    hardtarget is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    3
    dcrake, unfortunately its because users wont type the whole name when they fill out the form - only part of it.

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

Similar Threads

  1. Which data in which table?
    By stella in forum Queries
    Replies: 1
    Last Post: 08-28-2009, 02:18 PM
  2. Replies: 0
    Last Post: 08-01-2009, 12:43 PM
  3. Transfering data from one table to another
    By ron727 in forum Access
    Replies: 2
    Last Post: 04-26-2009, 11:33 PM
  4. One table, different data
    By Zoroxeus in forum Reports
    Replies: 2
    Last Post: 12-07-2006, 04:33 PM
  5. Unmatched data entered with data in table
    By boreda in forum Access
    Replies: 0
    Last Post: 07-28-2006, 09:11 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