pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi, "INSERT INTO Table from another access table" - Is it possible to select all into this databse table from another database table?
I show something like this...but wont work [dont know how to make it work...]
Thanks in advance for helping.
I show something like this...but wont work [dont know how to make it work...]
Code:
[/FONT]
[FONT=Courier New]Sub Test1()
Dim SQL As String[/FONT]
[FONT=Courier New]SQL = "INSERT INTO ACCESSTBi ( NAMES )" & " " & "IN 'E:\Access\Database4.accdb' "
SQL = SQL & "SELECT ACCESSTBi.NAMES "
SQL = SQL & " FROM ACCESSTB;"[/FONT]
[FONT=Courier New]CurrentDb.Execute SQL[/FONT]
[FONT=Courier New]End Sub
Thanks in advance for helping.