Well, yes, that is a solution, and a neat, simple one. But in previous versions of Access, you could use the Command Button Wizard in form-design and simply choose an existing [delete] query from your list of queries. When you are doing a quick-and-dirty
job, using the wizards is often a great time saver, and very simple. (otherwise, why would microsoft have them at all?)
The wizard is only used to structure and write the procedure associated with the button; it is not used to run the procedure. So i don't understand why it could be "too complex for the simple minded wizards to deal with." In this case, we are talking
about 2 arguments: action: run a query; argument: name of the query.
I don't mean to be argumentative, i am just trying to understand the new way of working in Access (my last version was almost 10 years old, so i am behind by 2 versions, and a lot has changed!)
Thanks for your help and the snippet of code.