Merge Similar Tables

Jun 5, 2007

Hi there,

I'm quite new to Access.

I have two tables which have very similar Data, but laid out differently.

The main similarities are things like FirstName, LastName, Company.

What I need to be able to do is merge the two tables together into one super table.

I've tried linking FirstName with FirstName and LastName with LastName on both tables, and running a query, so I can check for duplicate names. But all that brings up is a list like this:

Steve Smith Steve Abrahams
Steve Smith Steve McDonald
Steve Smith Steve Perry
Steve Smith Steve Vere

(those columns would be Old FirstName, Old LastName, New FirstName, New LastName)

There are fields in the old table that are not in the new, and vice versa. But the core fields are labeled the same. What's the best way to proceed here?

Cheers,

Hob

View Replies


ADVERTISEMENT

Tables :: Merge Duplicate / Similar Records Into 1 Record In Access 2010

Jun 9, 2014

Is there a way to merge duplicate/similar Access 2010 records into one record?

I have an Access table with 1,000 duplicate records, although they are similar and not exact duplicates. As you can see below, some records contain information that other records do not. Yet, the primary key is the same for all duplicate records. I want to find a way to merge data from filled cells of duplicate records into empty cells for each duplicate record. I do not want to concatenate the data (i.e. combine last and first name, etc.). I only want to fill empty cells if there is a match for it in a duplicate record. I will delete the newly exact duplicate records later. Short of correcting the records by hand.

Example

Code:
LastName FirstName SSN Address Phone Email
Doe John 123-45-7891 123 Anywhere St. NULL john(at)gmail.com
Doe John 123-45-7891 NULL (123)456-7890 NULL

Desired Result

Code:
LastName FirstName SSN Address Phone Email
Doe John 123-45-7891 123 Anywhere St. (123)456-7890 john(at)gmail.com
Doe John 123-45-7891 123 Anywhere St. (123)456-7890 john(at)gmail.com

View 2 Replies View Related

Tables :: 2 Similar Tables / One Takes Too Long To Append Data

Jul 19, 2014

I have being playing with ms access but I really don't know much about it or databases in general.I have created a very simple database to gather twitter following/followers data for research purposes.One table (table01) has a field for the "boss" user (=the user who I gather data for), another field for "client" (=bosses followers or friends).Both fields are numeric and contain the users id's.In order to distinguish if the link is follower or friend there is a third field, called type which can be either 1 (=follower) or 2 (=friend).So the data would look like this:

boss - client - type
12345, 67890, 1
12345, 54321, 2

If user with user id 12345 had a follower (type 1) with user id 67890 and a friend with user id 54321...In order to avoid getting duplicate rows I also added a unique identifier which is of the form boss_id-user_id-type.So the above row looks like this:

12345-67890-1, 12345, 67890, 1
12345-54321-2, 12345, 54321, 2

That works just fine.For several reasons I also needed data of the form source - target.So I also made another table (table02) of this form.

67890, 12345
12345, 54321
...

In table 2 you don't need the "type" field since the position of the user id shows the type of relationship.Still, you need a unique identifier in order to avoid duplicates, so I added on with the form: source_id-client_id..So table02 lookes like this

67890-12345, 67890, 12345
12345-54321, 12345, 54321
...

Both tables also have a date/time stamp for each line.As you can see, table01, having also a type field is bigger than table02.The problem is when I try to append data, exactly the same data in both tables.Appending data to table01 is ok, while appending data to table02 (which is smaller, having one less field) takes a really long time, maybe 10 times as long as appending data to table01.To make sure that no query's are causing the problem I have tried first creating temporary tables with the data to be appended, no duplicates, nothing that would cause the database to make extra calculations and used a simple update query with no filters to append data.Still I get the same result, table02 takes a very long time to finish while table01 finishes in no time.

View 2 Replies View Related

Keep 5 Similar Tables Updated

Apr 2, 2008

I have 5 tables which comes from different departments in our company.
All of them have the same key "project no" but hold different information in other colums.
As a starting point I have secured that they all have same no. of records meaning all "project no" are in all tables but some table might not contain other information in that record than the project no.
I have put them into a quirie and on a form I am able to look at all data from all 5 tables.
I have linked them one to one and it works fine untill I add a record to one of the tables. Afterwards I am not able to write into fields from other tables because there is no automatic creation of the record in the other tables.
Please How would this be best/easiest to make for me. ?
The reason why I have to keep the 5 tables is that regular updates are avaiable form any of them.

Appricate any comments which can make me any progress.

View 3 Replies View Related

Find Similar Data In 3 Tables

Mar 29, 2008

I have 3 tables, with the same field in each of the three tables. I need to find numbers (within those fields) that are similar in all 3 tables. If a number appears in all 3 tables, then all the data for that number need to be pulled from each table and placed in one row, all corresponding to that one number.

I can get this to work for 2 tables, using a query, but not three.

View 7 Replies View Related

Joining Tables With Similar Fields?

Sep 18, 2015

How would I go about joining tables with similar fields? I currently have three tables that show standings of teams (East, Central, and West). They all have the same fields:

East
Team Name
Wins
Losses
Ties
Points For
Points Against

Central
Team Name
Wins
Losses
Ties
Points For
Points Against

West
Team Name
Wins
Losses
Ties
Points For
Points Against

How would I combine them in a query so that all of the data from the tables are compiled into one table:

Overall Standings (East/Central/West)
Team Name
Wins
Losses
Ties
Points For
Points Against

View 1 Replies View Related

How To Join Tables With Similar Values In Query

Apr 5, 2006

Can someone please help with the following:

I am trying to join two tables in a query. One of the tables has only the fullname while another has only the surname (this table is imported from an external database). I need to be able to match the two tables up. Can anyone please suggest how to do this or even if this is possible.

Thanks

View 6 Replies View Related

Comparing Similar Columns In Multiple Tables.

Jun 1, 2007

Hi Everyone,

I am trying to compare/relate two columns in two tables to each other in access, where the results shoud return similarities among both colums from both tables.Even if one column has some parts of it.
Example;
T1 T2
Name Members
John Johnson.kay
mike mike
Daniel Danielson.mic
Richard Richardson

I tried; "like[T1.Name]*" in the criteria section of Members.Need Help pls.

View 13 Replies View Related

Tables :: How To Not Allow A New Record To Have Similar Values As Existing One

Jul 29, 2015

I am having an issue with duplicates in my table. I have a table, called "Part Mods", that has about 12 fields in it. the first 2 of them are "Mod" and "Part Number". I have a form where someone can insert data into this table and what i want is for them to NOT be able to insert a record with the same Mod/Part Number combination of an already existing record. I have "indexed" turned on but I am pretty sure that is for every field.

View 3 Replies View Related

Modules & VBA :: Combining Multiple Tables Of Similar Type?

Jul 17, 2014

I have a database which is importing several Excel workbooks, each with multiple worksheets. Every workbook has 20 worksheets, with the same 20 worksheet names. When they are imported they come in as one table for each worksheet, named tblWorkSheetName_X with X starting at 1 and increasing for each worksheet brought in with the same name. So if the worksheet names are A-T I have tblA_1 through tblA_6 and likewise for B - T.

I would like to combine all of the tables which come from similar worksheets into one table (one table per name).

I.e. I want to combine the data in tblA_1 through tblA_6 into a singular tbl_A and likewise for tables B through T. So in the end I will have one table for each worksheet name A-T. t how to code this successfully?

View 14 Replies View Related

Tables :: Similar Option To Multivalue Lookup Fields

Apr 16, 2013

Is there another field that can be used beside the lookup field in an Access table? I am currently using the lookup field as a multivalued lookup field and I am limited to the the things I can do with it when creating a report or a query on that field. Is there a similar field in Access 2010 that has the same look as a lookup field and allows for multiple values to be selected?

View 4 Replies View Related

Tables :: How To Merge Large Data From Two Different Tables

Jan 1, 2014

So I have two tables,

table1: (company_name, company_code, year_month, rating)
table2: (company_name, company_code, year_month, asset, debt, equity,...)

What I would like to do is to call up all the data in table1, and then call up (asset, debt, equity,...) from table2 where the company_code and year-month are equal. What do you think is the best way to do this? Keep in mind a few things:

1. I'm dealing with hundreds of thousands of data lines
2. I may need to get more data similar to table2 in the future and call it up in the same way

I thought I should create a primary key "company_code-year_month"for both tables, but that method doesn't seem like a good one, and if I were to have another table, will have to create the same primary key for that table as well?

View 3 Replies View Related

Trying To Merge 3 Tables Into 1

Nov 1, 2007

I'm trying to merge 3 tables into 1

Made new table which contains all the fields from the 3 source tables

Exported source table 1 to xls

On importing to destination table I get "an error has occurred. Data not imported"

Can anyone shed light on how I can do this or waht teh problem might be?

Many thanks

Paul

View 3 Replies View Related

Merge Tables

Sep 15, 2006

I have a very simple question which is anoying me already for a very long time. I have two tables both with a key field, a common field and a table specic field. Like :

Key,common,spec1
222,AAAA,20000
333,BBBB,0000
444,CCCC,22000

Key,common,spec2
111,EEEE,PRO
222,AAAA,PRV
777,FFFF,PSR

Which I want to merge to one table like this :

Key,common,spec1,spec2
111,EEEE,-----,PRO
222,AAAA,20000,PRV
333,BBBB,10000,---
444,CCCC,22000,---
777,EEEE,----- ,PSR

If I set a relation on the keyfield, where both keys should be equal, the result is :

222,AAAA,20000,PRV

If I set a relation on the keyfield, wiith all records from table 1 and from table 2 where both keys are equal, the result is :

222,AAAA,20000,PRV
333,BBBB,10000,---
444,CCCC,22000,---

If I set a relation on the keyfield, with all records from table 2 and from table 1 where both keys are equal, the result is :

111,EEEE,-----,PRO
222,AAAA,20000,PRV
777,EEEE,----- ,PSR

How do I solve this?

View 6 Replies View Related

Merge Tables

May 2, 2007

I have database A & database B, which is a copy of the first.
I have made some changes to database B but need to merge one table back into the original database.

Any ideas.

Thanks.

View 2 Replies View Related

Tables :: Way To Combine / Merge All Tables

Dec 13, 2012

I have mulitple dbs that are exactly the same in design that I need to combine into one db. The problem that I am having is that the primary keys are autonumbers and I get errors when trying to copy and paste the data into the tables. Is there an easy way to combine/merge all the tables? I have attached a sample for review. Password LOCK

View 4 Replies View Related

How To Update/merge Two Tables?

Apr 10, 2005

Hi,

I have two tables as follows:

___________________________
tableA:

projectid capital
1 200
2 200
3 300
4 400

tableB:

projectid capital
1 100
2 200
3 300
____________________________

I want to create tableC that is a merge of tableA over tableB as follows:

projectid capital
1 200
2 200
3 300
4 400

Can someone tell me how I can get this done please?

I have been struggling with query syntax on this for about 2 days now not knowing how to get this done. Thanks for responding.

View 6 Replies View Related

Need To Merge Multiple Tables.

Dec 15, 2005

I have several tables I have brought in from excel spreadsheets. Each one has one common column (lets call it serial number), but then all the rest have a variety of information (one has location info, one has network info, one has asset tracking info, one has sw load info, etc). What I want to do is a) collect all the records from each table into one, b) merge the records with common key field so I don't have multiple records for this one key field and can have just one record with the information from all the different tables in it, c) not lose any records that don't have a sister record in some other database.

Anyone have any idea the best way of attacking this problem is. Common joins cause problems because of records that are not in both tables get left behind. Union and append queries creae many multiple records with the same ser # but only the bits of info they brought in from their original spreadsheet, not the other info from the other speadsheets. I am an Access Newbie and trying to figure out if this is even possible without extensive coding.

Thanks,

CORiverRat

View 3 Replies View Related

To Merge 2 Tables In 1 Table

Jan 10, 2007

Hi,
I have 2 tables which have the same variables:
1st is called "stockholm"
The other is "gothenburg"
I tried to query them but the query does not add everything, there are always missing records.

Any tips?

Thank you in advance & best regards
noah

View 1 Replies View Related

In A Query - A Way To Merge 2 Tables Into One?

Nov 21, 2007

Hi all. Is there some way to merge 2 tables into one in a query? Is it possible? Thank u.

View 7 Replies View Related

Need To Merge Multiple Tables

Dec 15, 2005

I have several tables I have brought in from excel spreadsheets. Each one has one common column (lets call it serial number), but then all the rest have a variety of information (one has location info, one has network info, one has asset tracking info, one has sw load info, etc). What I want to do is a) collect all the records from each table into one, b) merge the records with common key field so I don't have multiple records for this one key field and can have just one record with the information from all the different tables in it, c) not lose any records that don't have a sister record in some other database.

Anyone have any idea the best way of attacking this problem is. Common joins cause problems because of records that are not in both tables get left behind. Union and append queries creae many multiple records with the same ser # but only the bits of info they brought in from their original spreadsheet, not the other info from the other speadsheets. I am an Access Newbie and trying to figure out if this is even possible without extensive coding.

Thanks,

CORiverRat

View 8 Replies View Related

Queries :: Merge Two Tables

Sep 5, 2013

I have a database with the following tables:

- data
- datamodifications
- mergeddata

The "data" table is imported from a large excel file (about 5000 rows and 40 columns) and needs to be updated about once a year. The idea is to use the "datamodifications" table to store all modifications and then merge "datamodifications" and "data" into "mergeddata", so when i have to update the "data" table next year i can just remerge it with my modifications. My problem is that i cant merge the two without getting dupliace entries. I have tried with this query but it gives me duplicate entries:

Code:
SELECT col1, col2, col3
FROM data
UNION
SELECT col1, col2, col3
FROM datamodifications
ORDER BY col1;

How can i remove the duplicate entries (or is there a better way than actually writing SQL to do what i want do to?

View 4 Replies View Related

Merge Tables Based On Date

Mar 28, 2007

I'm have a numbers of tables that contain the number of quotes and sales by date. The tables are split by product

So for example: table a/Table b/Table c all contain...

Date/Quotes/Sales
20.02.07/50/20
21.02.07/55/15

I am trying to create a new table joining these 3 tables together by date
Date/Table a:Quotes/Table b:Quotes/Table c:Quotes and so on

I have created a separate date table and have joined all 3 tables to the date table but I end up with a hugh amount of duplicates.

How do I get rid of the Duplicates?

View 1 Replies View Related

Access 2010 / Merge Several Tables Into One

Apr 22, 2013

merging seven tables with the same layout, but different information from different groups into one main table.

View 6 Replies View Related

Tables :: Merge Data - Multiple Rows To One Row?

Aug 29, 2014

I am trying to merge data from multiple rows into one row for each unique ID. I can replicate on how to do this on a table, maybe a query or something like that. Attached img shows

View 3 Replies View Related

Forms :: Mail Merge From Several Access Tables

Oct 16, 2013

I am pretty new to the using of Microsoft Access. Part of my role at work is to mantain a register of contacts (Aprox 2000 records). When moving into my role there was already an Access Database in place that had been designed and created by another member of staff prior to leaving.

The database contains a wealth of information, however this is spread across MULTIPLE tables (23 to be exact)

I am trying to create a word document that is basically a mail merge in order for me to drag the contact information over to print. However all the information I require is not in one table. Word will only extract the data from one source.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved