Insert Complete RecordSet to another table in other database MS Access

人走茶凉 提交于 2019-12-06 21:22:31

You can run an insert query using your other database as the source for the data.

"INSERT INTO Tab_PT (Field1, Field2, Field3, Field4, Field5, Field6, Field7) " & _
" SELECT Field1, Field2, Field3, Field4, Field5, Field6, Field7 " & _
" FROM [MS Access;DATABASE=PathToSanchez_MarDB].FINAL_Alarma_SYM"

Do the following from the source database:

1) Create a linked table to the destination table.

  • On the External Data tab, in the Import group, click Access.
  • Select Link rather than import
  • Browse to the destination database and select the file
  • Select the destination table from the list

2) Create an append query selecting from the source table and appending to the linked table.

  • Create a select query by selecting each field independently
  • Change the query to an append query by clicking "Append" in the Design tab
  • Select the (linked) destination table

3) Run it

This is probably as fast as it gets if you already have the destination table. If you don't mind starting over, you could delete the destination table and just do an import from the destination database.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!