I'm using access 2002 and I'm trying to automate a procedure using a
macro. The macro essentially exports a query as html, but asks me
everytime if I want to overwrite the old file?
First of all, this has little or nothing to do with Tables and DB Design.
Still, here goes...
Second of all, just don't use macros: they are extremely limited, for
example in not handling any error conditions or program control.
Third of all, if you use VBA to do this, you can make sure to Kill the
file explicitly before rewriting it; or else give the new a new name,
perhaps based on today's date; or store away yesterday's back up, etc.
SendKeys in particular is likely to catch you out big-time sooner or
later: you don't really know what dialog is going to pop up and be
answered with a "Yes"...
"Do you really want to install this
<unknown email attachment> application?"
[[Yes]] [No] [Cancel]
All the best
Tim F