Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make table from one mdb to another

Status
Not open for further replies.

gbfell

Programmer
Dec 11, 2001
27
0
0
US
I need a way of selecting all records from a table from one mdb into another. simple, right? how do i do it? do i need multiple connections?
 
INSERT INTO Tablename (field1, field2)
IN 'C:\Temp\myJetDB.MDB'
SELECT field1, field2
FROM myDBFTable


Please note the single quotes around the path.

[/b][/i][/u]*******************************************************
[sub]General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 

And, you yould also use the SELECT INTO (watch it - it has a different syntax), which will also create the table if it doesn't already exist - but produces an error if it does already exist. [/b][/i][/u]*******************************************************
[sub]General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top