Automating query deletion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an Access 2002 db that has thousands of queries that get generated
with a script. After time these queries are nolonger needed. I would like
to delete them but I can only delete on at a time. I am trying to write a
macro using the deleteobject command but it only allows me to choose one
object name.

I can't seem to use a wildcard in the object name which would allow me to
delete all of these objects since the naming convention is similiar.

Can anyone recommend a solution?

Thanks
 
That's a limitation of Macros.

If you used VBA, you could loop through all of the queries and determine
whether or not you wanted to delete the current query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Delete Object Macro 2
Can't delete file 3
Automate Link Process 1
append delete query 1
Conditions 2
Record insert/delete anomaly 0
Run-time error 424 open.Workbooks 1
Delete Objects Errors 4

Back
Top