you're deleting all of the records in a table. that is NOT the way to do it. the way TO do it is like this:
Code:
currentdb.execute "delete * from [xxx xxx]"
one line of code, DONE.
now trust me, I'm not making light of your concerns, but this is a classic example of novice coding, and it's simply because beginners usually tend to cling to the "docmd" object, because it has one of the largest dropdown items for the intellisense in VBA, second to only the "docmd.runcommand" code, which has hundreds of commands to execute (I think). the other thing is that beginners tend to use it because the "wording" of the dropdown items can be significantly correlated with interface features and menus. Hence, interface users identify well with the menu, and furthermore, know what it means.
that's the very first thing you need to do here.