473,626 Members | 3,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help wanted - how to merge two tables with different information.

Hy all,

We have two databases with similar information (both, made with MS Acess).
Both, A and B, have - in some cases - the same information, names etc.

Database A has the following fields. (4,000 entries)

Name-Phone-Addres-Email-Country-Language-University-Age

Database Be has the following fields: (2,000 entries)

Name-Phone-Addres-Email-Country-Language-University-Age-Secondary
School-Native Language-Identified Needs

Given that both databases have different primary keys, how can we do to
merge the (put database A and B toghether in one database)?

I am not well experienced with MS Access, the idea that comes to mind is
exporting both tables to a Microsoft Excel file and deleting any duplicates.

If anyone could light a candel in my tunel, it would be appreciated.

Thanks a lot in advace!

Oswaldo

IT IS FOR A CHARITABLE PROJECT

Nov 13 '05 #1
2 1824
Create a query that includes all the fields in Table A. In design view,
click on the query type button on the toolbar at the top of the screen and
change the query to an append query. When asked where to append, enter Table
B. You will then see in each field of the query a row that says Append To.
Make sure each field is filled in so all the data goes to Table B. When you
run the query, Table B and Table A will be merged. Be careful to only run
the query once!!!

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdata sheet.com
www.pcdatasheet.com
"Oswaldo Gómez RCN" <os************ *@gmail.com> wrote in message
news:dv******** ************@rc n.net...
Hy all,

We have two databases with similar information (both, made with MS Acess).
Both, A and B, have - in some cases - the same information, names etc.

Database A has the following fields. (4,000 entries)

Name-Phone-Addres-Email-Country-Language-University-Age

Database Be has the following fields: (2,000 entries)

Name-Phone-Addres-Email-Country-Language-University-Age-Secondary
School-Native Language-Identified Needs

Given that both databases have different primary keys, how can we do to
merge the (put database A and B toghether in one database)?

I am not well experienced with MS Access, the idea that comes to mind is
exporting both tables to a Microsoft Excel file and deleting any
duplicates.

If anyone could light a candel in my tunel, it would be appreciated.

Thanks a lot in advace!

Oswaldo

IT IS FOR A CHARITABLE PROJECT

Nov 13 '05 #2
Thanks a lot - I will try! Oswaldo
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
2334
by: ruel loehr | last post by:
Hey guys, I am looking for some insight: Given two sorted arrays of integers A and B, where array B has enough extra room in it to hold the contents of both A and B. Merge array A and B together such that the result is the sorted combination of the two (do not remove duplicates) and the result resides in the B array. I cannot perform any memory allocations to solve the problem.
48
3848
by: phillip.s.powell | last post by:
MySQL 3.23.58 - 4.0.17 (yep, several database server instances, don't ask) I have database Spring with table Students I have database Summer with table Students I am tasked to produce a query of all students in both tables with no duplicates. No clue whatsoever.
4
5444
by: lesperancer | last post by:
I have 3 tables (office97) tblQuote quoteNbr tblDetails ( quote : 1 <-> M: quoteDetails) quoteNbr detailLine product value
4
4949
by: Andreas Kasparek | last post by:
Hola! I'm preparing my master thesis about a XML Merge Tool implementation and was wondering if there is any open standard for XML diff regarding topics like: - is a diff result computed on the ordered or unordered xml node tree of the compared documents? - what identifiers/criteria should be used by default to match elements of the same type in different documents? - should a diff tool consider move operations or only insert/delete
0
947
by: Brett Romero | last post by:
If I have a dataset with one table and want to merge another table, how does merge know which column to match rows on in each table? For example Table 1: personid firstname lastname address
3
2604
by: John Cosmas | last post by:
I have a DATATABLE which I have populated in my application, and I need it written out to a particular table I specify in my ACCESS database. My code works to the point of the MERGE and UPDATE, but it creates exactly the number of BLANK records per the populated DATATABLE. Here is my code... pstrDestinationTable = "tws_tbl_Case_Scanner_" & GetDateTimeStamp() pstrSQL = "SELECT * INTO " & pstrDestinationTable & " FROM...
8
6704
by: babyangel43 | last post by:
Hello, I have a query set up in Access. I run it monthly, changing "date of test". I would like this query to be merged with a Word document so that the cover letter is created in Word, the fields from Access are automatically filled into the Word document. The query could be anywhere from 0-5000 names, one cover letter per name. AND to this cover letter for each applicant, there has to be attached a two page document. How in the world can...
10
2790
by: mscurto | last post by:
What is the syntax for an sql command to get the following. I want to pull in a handful of fields from a table but one of the fields needs to be unique. For example, if I have a customer table and I want to get each unique customer number but I also want to get the customer's name, address, email address, etc. What is the syntax? I am trying to use DISTINCTROW but to no avail. If I use DISTINCT,
5
2509
by: Sam | last post by:
Hi, I have one table like : MyTable {field1, field2, startdate, enddate} I want to have the count of field1 between startdate and enddate, and the count of field2 where field2 = 1 between startdate and enddate, all in the same query.
0
8268
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8202
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5575
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2628
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1812
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.