Using same parameter value across multiple queries

LiamOfFoxchase

New Member
Joined
May 23, 2005
Messages
13
Access gurus,

I have a macro which runs a series of queries. 3 of these queries use the same value for a criterion, Fiscal Quarter. Right now, I go into Design View of each query and change the Fiscal Quarter manually. I'd like to automate this by entering the value once, and ideally I'd like to include this input at the beginning of the macro.

Any ideas?

Thanks,
Liam
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Liam

Why not convert the macros to VBA?

That should give you greater controls over the queries.

By the way could you not use a date calculation to return the current fiscal year, or do you want user input?
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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