Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 12:15 PM
pwh777
Guest
 
Posts: n/a
Default Transfer table records from one to another

I have read many of the topics on importing tables from one database to
another. However, I don't want to use the TransferDatabase command
because I want to copy all the records (not the object) from one table
in an external database into my current database. My current database
already has the table and I want that table to keep its records.

Any ideas?

  #2  
Old November 13th, 2005, 12:15 PM
David Lloyd
Guest
 
Posts: n/a
Default Re: Transfer table records from one to another

One approach is to use the IN statement. For example

INSERT INTO MyLocalTable
SELECT *
FROM MyRemoteTable
IN 'C:\MyRemoteDatabase.mdb'

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


"pwh777" <pwh777@hotmail.com> wrote in message
news:1119457380.848144.229550@g49g2000cwa.googlegr oups.com...
I have read many of the topics on importing tables from one database to
another. However, I don't want to use the TransferDatabase command
because I want to copy all the records (not the object) from one table
in an external database into my current database. My current database
already has the table and I want that table to keep its records.

Any ideas?


  #3  
Old November 13th, 2005, 12:15 PM
Bas Cost Budde
Guest
 
Posts: n/a
Default Re: Transfer table records from one to another

pwh777 wrote:
[color=blue]
> I have read many of the topics on importing tables from one database to
> another. However, I don't want to use the TransferDatabase command
> because I want to copy all the records (not the object) from one table
> in an external database into my current database. My current database
> already has the table and I want that table to keep its records.[/color]

Do the TransferDatabase anyway, but name the external table differently.
Then, use an Append query to copy your records. You can delete the
linked table afterwards.

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

  #4  
Old November 13th, 2005, 12:15 PM
pwh777
Guest
 
Posts: n/a
Default Re: Transfer table records from one to another

It's working. Thanks so much David! That was awesome.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles