Results 1 to 2 of 2
  1. #1
    fhickler is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2018
    Posts
    30

    Comparing 2 datasets

    I have 2 tables of contact info joined by an id number field. My goal is to compare each field in one table with its corresponding field in the other, and let me know whether or not they are equal. The way I've achieved this is to make a query the looks like this:

    Address_line_1 Address_Line_1 CompareAdd1:[Table1].[Address_line_1]=[Table2].[Address_Line_1]
    Table1 Table2



    with a set of 3 columns for each field that I want to compare. Is there a better way to achieve this that someone can recommend? I prefer not to do much coding in sql or vbscript, as my scripting skills or not great, and my Access skills in general are kinda intermediate.

    Thanks in advance.
    Last edited by fhickler; 11-26-2018 at 05:17 PM. Reason: Fixed table again

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    That's how I would do it, barring other requirements. Generally SQL is the most efficient way to pull data.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 12-21-2012, 03:27 PM
  2. Queries, VBA or both for large datasets?
    By FatLane in forum Database Design
    Replies: 2
    Last Post: 07-10-2012, 02:09 PM
  3. Returning multiple datasets from table in a form
    By need_help12 in forum Forms
    Replies: 3
    Last Post: 04-19-2012, 06:27 AM
  4. query to add new column using two datasets
    By nlreid in forum Access
    Replies: 3
    Last Post: 11-12-2010, 07:35 PM
  5. Replies: 1
    Last Post: 02-26-2009, 11:31 AM

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