If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Delete & Copy Access table thru VB

I have a database named “Erpts.mdb”. In that DB I have a table called “Erpts”.
What I am trying to do is thru VB program copy the table “Erpts” to another
table called “WorkTable” in the same DB. Every time when it runs the program
delete the “WorkTable” and then copy the table “Erpts” as “WorkTable”. I
have the code as below.

So when I run this I am getting the error as
“3078The Microsoft Jet database engine cannot find the input table or query
'WorkTable'. Make sure it exists and that its name is spelled correctly.
occured in CopyDBtable”

If I have the Access database open I am getting the error as
“2486You can't carry out this action at the present time. has occured in:
CopyDBtable”

Is there any other way to delete and copy the table in a DB?
Thanks,
Sinni.