A
Anna
I'm trying to use code to copy a select query, then turn
the copy into a Make Table query. So far I have:
DoCmd.CopyObject , "tmpQuery", acQuery, Reports
(0).RecordSource
DoCmd.SelectObject acQuery, "tmpQuery"
DoCmd.RunCommand acCmdDesignView
Then I'm trying to change the query to a Make Table type
using acCmdQueryTypeMakeTable like so:
DoCmd.RunCommand acCmdQueryTypeMakeTable
But I have no idea how I'm supposed to specify the name of
the table the query is supposed to create. Any
suggestions?
the copy into a Make Table query. So far I have:
DoCmd.CopyObject , "tmpQuery", acQuery, Reports
(0).RecordSource
DoCmd.SelectObject acQuery, "tmpQuery"
DoCmd.RunCommand acCmdDesignView
Then I'm trying to change the query to a Make Table type
using acCmdQueryTypeMakeTable like so:
DoCmd.RunCommand acCmdQueryTypeMakeTable
But I have no idea how I'm supposed to specify the name of
the table the query is supposed to create. Any
suggestions?