Is there a way to create a table from a query and give the table a
different name each time? Or is there code that will allow me to do this?
It's possible using VBA code... but it is A VERY BAD IDEA.
MakeTable queries are *occasionally* useful, but it's very rare. Bear
in mind that you can use a Select Query as the source of a Form, of a
Report, of another Query, as a source for an export to Excel or some
other external format... only rarely do you need a new table. Also,
table names are NOT searchable; if you proliferate a lot of tables you
will have great difficulty later on figuring out which table is which.
What are you trying to *accomplish* in the real world? I strongly
suspect there's a better way!