473,396 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

copy data from one database to another database

I run an Access-based application that uses main1.mdb (updated weekly). However going forward I would only receive main2.mdb file with different structure. My question is how I can copy data from main2.mdb file into main1.mdb. The main1.mdb had 5 tables and main2.mdb has 9 tables (5 tables similar to ones in main1.mdb + 4 new tables). The good news is that I don’t need to use the data from 4 new tables. However few columns have been renamed or dropped in the original 5 tables.

I have posted 2 tables with the understanding that if someone can help me with these 2 tables, I can make relevant changes to other three tables. As you can from the following example that there is a one-to-one relation between Administrative and Access table (with column names renamed)

Main1.mdb

Administrative
AdCode
AdName
AdDesc
AdDate

Access
AcNum
AcDate


Main2.mdb

Administrative
Ad_Id
Ad_Name
Ad_Bit (New Column Name)
Ad_Desc
Ad_Date

Access
Ac_Num
Ac_Date

Any help will be highly appreciated.
Jun 29 '09 #1

✓ answered by ajalwaysus

I'm not completely sure I know what you want, but if you are simply trying to transfer data from one MDB to another. A simple way, would be to just link the tables from Main2.mdb in Main1.mdb. Then just create a simple query that takes from Ac_Num and insert into AcNum..etc.Hope this helps.

2 4411
yarbrough40
320 100+
I have read your question a few times and I'm still confused at what you are asking. Are you wanting to simply send data from tables in Main2 to tables in Main1? Are you wanting to do this one time... or do you need a code solution so that you can run updates periodically?
Jul 6 '09 #2
ajalwaysus
266 Expert 100+
I'm not completely sure I know what you want, but if you are simply trying to transfer data from one MDB to another. A simple way, would be to just link the tables from Main2.mdb in Main1.mdb. Then just create a simple query that takes from Ac_Num and insert into AcNum..etc.Hope this helps.
Jul 17 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Khue Pham | last post by:
Does anyone knows how to copy database from one server to another. By copying I mean literally everything, not just the database. I know we can dump the database from one server then reload it to...
5
by: Kevin | last post by:
Can anyone recommend the easiest way to get a full copy of a database from one server to another. The servers are not part of the same organization or network. I have received a backup of the...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
5
by: Clodoaldo Pinto Neto | last post by:
Hello, How to make sure COPY TO writes the table lines to the file in the same order they were inserted? I'm producing html pages in pl/pgsql and using COPY TO to write then to file....
4
by: JIM.H. | last post by:
Hello, I am trying to write the data I got from a web service to my table in SQL Server I need to append the dataset wsDS to the dataset ds and do update. PVS.myWS.Loader load = new...
12
by: alanchinese | last post by:
i am a db2 newbie. we have a server hosting a db2/6000 database that restricts the use of backup, generate ddl. i wonder if there is a simple way to transfer the database structure and data into my...
2
by: Swinky | last post by:
I hope someone can help...I feel like I'm walking in the dark without a flashlight (I'm NOT a programmer but have been called to task to do some work in Access that is above my head). I have...
5
by: Steve | last post by:
Hi; I thought I would rephrase a question I asked in another post to more quickly get to the heart of the matter. My apologies for anyone who is offended by what appears to be a repetition. ...
3
by: maheshkadam | last post by:
Hi friends I am new to perl so please guide me. I have one application which created backup log file every day.But it appends that file so you can see logs for different day in one file only. ...
2
by: Dev guy | last post by:
Hi all is there a simple command where I can just copy some data from one database server to another? For example, lets say i have two servers that have the same table called "States" If I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.