P
peterlarsen2000
I am doing a fairly simple project for a client in which I am "translating"
an existing macro into VBA in order to enable me to provide the client with a
better user interface. It is a data migration system which will be run on a
regular basis. It includes multiple make-table queries which are used as part
of the process of transforming the data.
When I try to execute one of the make-table queries through code (using
QueryDef.Execute), I get back an error code of 3010 and a message telling me
that the table already exists. This is correct; the table does exist, but I
expect to be able to indicate to Access that the existing table should be
overwritten, just as I can when executing the query through the Access UI or
through a macro. I've tried setting warnings to "off" (DoCmd.SetWarnings
False), but that hasn't helped.
Does anyone have a solution?
an existing macro into VBA in order to enable me to provide the client with a
better user interface. It is a data migration system which will be run on a
regular basis. It includes multiple make-table queries which are used as part
of the process of transforming the data.
When I try to execute one of the make-table queries through code (using
QueryDef.Execute), I get back an error code of 3010 and a message telling me
that the table already exists. This is correct; the table does exist, but I
expect to be able to indicate to Access that the existing table should be
overwritten, just as I can when executing the query through the Access UI or
through a macro. I've tried setting warnings to "off" (DoCmd.SetWarnings
False), but that hasn't helped.
Does anyone have a solution?