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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,061
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,118,811
Messages
5,574,452
Members
412,595
Latest member
slim313
Top