Results 1 to 5 of 5
  1. #1
    johnmerlino is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    97

    How does access match records?

    Hey all,



    In excel, let's say you have last name, first name, and middle initials, and addresses in columns A through D, and then you last name and first name in columns E and F. If you want to compare them and only return columns A through D where the first and last name match columns E and F, you might do something like this:
    Code:
    =F1&" "&INDEX(C$1:C$354,MATCH(F1,G$1:G$354,0))
    I would like to know how in Access can you import, let's say, 200 records and return all the records already existing in the database where the first and last name match the 200 records you just imported?

    Thanks for any response.

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi John,

    to find data in Access you have to build queries. As there are a lot of possibilities I would advice to get a basic book or look for an online course to learn the basics.

    grNG

  3. #3
    johnmerlino is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    97
    But what if the records you import are not in a database table. It's just a list of records that you want to match against a table in a database? Doesn't a query only work on a single database? It's not like a join table can be used because there's no table to join!

    Would I need to create a table? And do this query?
    Code:
    SELECT Table1.LastName, Table1.FirstName, Table1.MI, Table1.Address, Table1.City, Table1.State, Table1.Zip FROM Table1 WHERE Table1.LastName=Table2.LastName && Table1.FirstName=Table2.FirstName;
    Anyone know how to convert this MySQL to JET in Access?

    Thanks for response.

  4. #4
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    you can link the excel file to Access and then use it in a query as an Access table. the query can easily be made in the query by example grid.

    grNG

  5. #5
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    Noella's advice is correct. It is very easy.

    First either import the excel data or link to it. Import if it is static, link to it if it is continuously being updated.

    Assuming your core info is already in an Access table then you now have 2 tables.

    In query design mode, embedded is a FindDuplicates wizard - which will step you thru set up of the query.

    Hope this helps.

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

Similar Threads

  1. data type mis match
    By cowboy in forum Programming
    Replies: 3
    Last Post: 03-12-2010, 11:54 AM
  2. Query to match ID's
    By Shag84 in forum Access
    Replies: 2
    Last Post: 09-06-2009, 08:13 PM
  3. Match up table using only a few charecter?
    By bangemd in forum Queries
    Replies: 5
    Last Post: 06-05-2009, 04:15 AM
  4. Match Records between TableA and TableB
    By friskydingo in forum Queries
    Replies: 0
    Last Post: 12-03-2008, 09:17 AM
  5. Finding data that doesn't match
    By dlhayes in forum Queries
    Replies: 1
    Last Post: 11-11-2006, 08:14 PM

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