J
JD
I have an Access 2007 database with a linked ODBC table that changes on a
daily basis. I want to automate a function where the linked table is copied
and pasted as a local table. I tried the following command:
DoCmd.CopyObject , stNewName, acTable, stTblName
It worked, and named the new table correctly (based on an earlier command
that assigns the table name with the current date as "stNewName"), but it
stayed as a linked table - which means tomorrow, today's data will be lost.
Is there a parameter of the CopyObject command that will make the new table
local, or is there another command I should be using?
daily basis. I want to automate a function where the linked table is copied
and pasted as a local table. I tried the following command:
DoCmd.CopyObject , stNewName, acTable, stTblName
It worked, and named the new table correctly (based on an earlier command
that assigns the table name with the current date as "stNewName"), but it
stayed as a linked table - which means tomorrow, today's data will be lost.
Is there a parameter of the CopyObject command that will make the new table
local, or is there another command I should be using?