Results 1 to 4 of 4
  1. #1
    Allan1875 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    2

    Comparing tables help

    Hi lads, first post, sorry if this is in the wrong place. Used access on a very basic level for years but needing to do a bit more with it now. I had a look through the forum and search but i may just be searching wrong.



    I have 8 tables inside my database, all contain similar records with the exact same fields and each tables first field is "reference number", which is unique to each record. I need to take all 8 tables and compare the reference numbers and exclude any duplicates. Table 2, 4 and 6 may contain the same reference number, however i only need it to be in one of the 3, doesn't really matter which one. Then tables 2, 4 and 5 may also have the same, once again doesn't matter which table the reference stays in.
    Can anyone give me any guidance or point me in the right direction to do some reading on the subject?

    Thanks.

  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,850
    Having multiple tables with exactly the same fields is a real red flaq. It sounds like a structure problem from the start. Tell us about these 8 tables--what do they represent? Be as precise as you can. Why is table 4 different than table 7 for example?
    What is special about the reference numbers?

  3. #3
    Allan1875 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    2
    Quote Originally Posted by orange View Post
    Having multiple tables with exactly the same fields is a real red flaq. It sounds like a structure problem from the start. Tell us about these 8 tables--what do they represent? Be as precise as you can. Why is table 4 different than table 7 for example?
    What is special about the reference numbers?
    I will try my best to explain as i can only go certain amount of info due to DPA.

    It's 8 separate reports that have been run in a different program and results brought over into access tables. The reports identify customer that meet all different types of criteria to do with vulnerability. So say for example report 1 picks out customers who are blind, report 2 picks out customers who are deaf, report 3 picks out customers with a physical disability.

    All these customers need to be on reports stating they need extra help.

    Person A - is blind, person B - is deaf, person C is deaf, blind and disabled.

    Person A will only appear in report 1, person B will only appear in report 2 and person 3 will appear on report A, B and C. I need to provide these lists to another department with no duplicates, therefore i only want person C to appear on either report A, B or C, not all 3. Each person has a unique reference number which I've already mentioned in my first post. All my tables are exactly the same except each table has extra Customers depending what criteria they meet, some Customers meet moer than one criteria, therefore they are in more than one table.

    The Customer stuff I've all just made up but it's a good example of exactly what i need to do. Hope it makes sense.

  4. #4
    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,850
    Where do the reports get their info? It would be better for you to get raw data from that source.

    Data from a report may be aggregated, manipulated etc. and it's likely full of formatting characters.
    Just sayin' if you have a chance get the raw data.

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

Similar Threads

  1. comparing two tables and via vba
    By webisti in forum Programming
    Replies: 29
    Last Post: 03-18-2014, 02:20 PM
  2. Comparing two tables
    By crowegreg in forum Programming
    Replies: 3
    Last Post: 02-25-2014, 09:00 AM
  3. Comparing two tables
    By jcarstens in forum Queries
    Replies: 3
    Last Post: 05-07-2012, 10:06 PM
  4. Comparing two tables.
    By elmister in forum Access
    Replies: 11
    Last Post: 08-24-2011, 11:59 AM
  5. Comparing two tables.
    By elmister in forum Queries
    Replies: 1
    Last Post: 08-22-2011, 05:32 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