BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copy contents of ADOconnection1 to ADOconnection2 while addi

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Beowulf
Guest





PostPosted: Tue Feb 10, 2004 1:58 pm    Post subject: Copy contents of ADOconnection1 to ADOconnection2 while addi Reply with quote



Hi

I have a slight problem. I thought this would be easy but it's causing
me a few headaches!

I have an ADOconnection pointing to an Access MDB full of live data.
I have a second ADO connection pointing to an ALMOST identical mdb
file except some extra fields have been added.
Each MDB file has approx 30 tables.
I am trying to write a procedure to copy all the data from all the
tables in my Source mdb (ADOconnection1) and copy it to my Destination
mdb (ADOConnection2) and at the same time add in each records new
field data.
For example, suppose I have 1 table in each mdb file with a structure
of

Name,
Age,
Shoesize

and I want to create a new table with the following info
Name,
Age,
Shoesize,
IQ,
Favorite_IceCream.

( I suppose so I collate if People with big feet and high IQ prefer
Choclate to Strawberry! <g> )

Is there an EASY way to do this? As I copy the records across I would
be assigning a value to my new fields.

I suppose I could just copy the MDB file , add in the new fields in
Access design view, then itterate through each table adding in the new
data?? I'm getting myself all confused..

any assistance greatly appreciated.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.