L
LarryP
I have a process where I copy a number of tables from one database to
another. Following is the VBA for one of those tables -- it works fine:
DoCmd.CopyObject "\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\MSAccess
Tools\PCMetrics Tool.mdb", , acTable, "tblPCData"
Now I want to run that table through a select query in order to change some
of the field names, and copy the output of the query to the other database as
a table. I've tried several variations, but none works:
DoCmd.CopyObject "\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\MSAccess
Tools\PCMetrics Tool.mdb", "tblPCDataA", acTable, "qryPCDataForFE"
{{{“the CopyObject action was cancelled….â€}}}
DoCmd.CopyObject "\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\MSAccess
Tools\PCMetrics Tool.mdb", "tblPCDataA", acQuery, "qryPCDataForFE"
{{{copies it, but as a query, not a table}}}
DoCmd.CopyObject "\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\MSAccess
Tools\PCMetrics Tool.mdb", "tblPCDataA", , "qryPCDataForFE"
{{{“the Object Type argument for the action or method is blank or
invalid….â€}}}
Help, please?
another. Following is the VBA for one of those tables -- it works fine:
DoCmd.CopyObject "\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\MSAccess
Tools\PCMetrics Tool.mdb", , acTable, "tblPCData"
Now I want to run that table through a select query in order to change some
of the field names, and copy the output of the query to the other database as
a table. I've tried several variations, but none works:
DoCmd.CopyObject "\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\MSAccess
Tools\PCMetrics Tool.mdb", "tblPCDataA", acTable, "qryPCDataForFE"
{{{“the CopyObject action was cancelled….â€}}}
DoCmd.CopyObject "\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\MSAccess
Tools\PCMetrics Tool.mdb", "tblPCDataA", acQuery, "qryPCDataForFE"
{{{copies it, but as a query, not a table}}}
DoCmd.CopyObject "\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\MSAccess
Tools\PCMetrics Tool.mdb", "tblPCDataA", , "qryPCDataForFE"
{{{“the Object Type argument for the action or method is blank or
invalid….â€}}}
Help, please?