I am facing a problem of transferring data between 2 tables within the same database.
I set up 2 tables. The first table is the permanent table (oos_table) for saving records. the other table is a temp table (oos_table_temp) for storing records which all data would be deleted after the data transferred to the permanent table.
below is the code I am currently using.
Expand|Select|Wrap|Line Numbers
- Dim strNewTable As String
- Dim strOldTable As String
- strNewTable = "oos_table"
- strOldTable = "oos_table_temp"
- DoCmd.TransferDatabase acExport, "Microsoft Access", CurrentDb.Name, acTable, strOldTable, strNewTable, False
But when doing the second time, the previously data in the permanent table will be replaced by the new temp table data.
The problem is, I want to keep te previous data in the permanent table and add the data in the temp table to it. not replacing the existing data.
Could anyone help with this?
Thanks a million.