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
 

Some videos you may like

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,216
Office Version
  1. 365
Platform
  1. Windows
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?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,290
Messages
5,595,268
Members
413,982
Latest member
sshvaika

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
Top