Results 1 to 3 of 3
  1. #1
    Usernamee is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2013
    Posts
    1

    [Query] Information about a list of names from Excel

    I am a relative newbie when it comes to Access. For my job I am supposed to "data-mine" a 5000+ name list of medical records to find information on ~2500 of the people on this list. To clarify, I have an excel file with around 2500 names and information fields which need to be populated by numbers from corresponding fields in Access. To manually do this, I would have to sit at my computer for weeks on end doing mind-numbing copy/paste .



    So basically, spreadsheet 1 (access) has all of the information I need to query, just filtered through the names on spreadsheet 2 (excel).

    Does anyone know the best route to tackling this problem?

    (sorry if this has already been explained somewhere else on the forum, I searched but don't exactly have a good Access "vocabulary" yet)

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    You seem to have some familiaity with Excel and not too much with Access.
    General approach:
    If you plan on working with Access;
    --Import your excel list into an Access table
    see http://office.microsoft.com/en-ca/ac...010272247.aspx
    -using the Access table and your "new Table", create one or more queries to find/match records.
    If you are dealing with Names from Excel, and trying to match with numbers from Access (assuming these numbers are unique identifiers for people), then you will need other info to ensure John Smith from your List is the very same John Smith in Access with the unique identifier. You will need additional info , such as address, phone number, DOB... somethings to ensure you really are matching the same person.

    Good luck with your project.

  3. #3
    cb9604 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2013
    Posts
    3
    To add to orange's comment, the easiest way to create a query that accomplishes your purposes is to choose "Query Design" from the CREATE subset of tools. Choose your two tables that you imported into Access, they will appear with your column names in two separate boxes. Choose which of the two tables that has all of the information you want by double clicking the *, or you can also customize which fields you want to appear by choosing them from the boxes.

    Now find the field from both tables that matches. This MUST be a unique record, such as a patient number, or your query will subject to errors. I would not recommend matching on First/Last name, as orange noted, there may be multiple John Smiths in your table that are not the same person.

    Click and hold down on the field name in the box that you have chosen, and drag it over to the matching field from the other table. A black line will be drawn connecting the two fields.

    In the top left you will see two buttons. Click "View" and choose "Datasheet View" or "Run" with the large red "!". Either will work. Your query will now display only the records where the two fields you connected match. You can then export this query back to Excel if you want, or use it to create a table in Access, or simply save the query itself to recover it later.

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

Similar Threads

  1. List names in Report
    By Javen in forum Reports
    Replies: 3
    Last Post: 09-15-2011, 01:40 AM
  2. Rotating list of names
    By bkvisler in forum Access
    Replies: 15
    Last Post: 07-27-2011, 06:49 PM
  3. Query Entity Names, and Column Names
    By Accidental DBA in forum Queries
    Replies: 1
    Last Post: 07-22-2011, 02:38 PM
  4. Import a list of names from Word to access
    By WickedGoodOutdoors in forum Import/Export Data
    Replies: 3
    Last Post: 01-04-2011, 05:25 PM
  5. Replies: 1
    Last Post: 05-17-2010, 12:21 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