Macro alternative? Running multiple queries in consecutive order?

Justinidea

Board Regular
Joined
Apr 7, 2010
Messages
57
I'm sure this is a silly question, but one never knows what is possible until one asks.

I have an Access DB with 25 queries to manipulate my data from start to finish. There are several different types of queries involved - select, make table, append and delete queries in various order.

I have a macro to run all those queries in consecutive order. Is there any way to do that with one query instead of a macro?

Thanks!!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I think probably not, especially if you are mixing different query types. I would say even if it were, it would be a very bad idea to do that anyway. It would make debugging ("finding issues") very difficult with a query that complex. Best to break it up into multiple chunks. You may be able combine some of them to reduce the number down from 25, though.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top