Edit query macro

G

Guest

I have a query that includes a field called "state". I need a macro that will
open the query, change the state to each state in the query, and then export
each state specific query to an excel file. I've figured out the export
function, but cannot figure out the edit query function.
 
K

Ken Snell [MVP]

Cannot be done by a macro directly. You'd either need to set up separate
queries (one for each state) and export each query, or use VBA code to
modify a stored query as you desire before you export it each time.
 

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

Top