Hi All, I am not very experience in VBA or creating mods in Access but I hope I can get some opinions and advice on an idea I have.
I have a database with several (approx 30) saved queries. Most of these queries are used weekly to pull data based on date parameters. So they are pretty much automated queries that prompt me to enter a start and end date to run the query. Pretty Simple.
But in these 30 or so queries, most of them have the same calculated fields in each query. For example one calculated field to calculate a "Store Name" to be "Store A" if its location (city) is "D.C." and the fiscal year is greater than "FY12" would read like:
Store Name: IIf(([City]="Washington DC") And ([FY]>"12"),"Store A"
But sometimes this calculated field may need to change, such as FY>13, or the city may change and the IIF function will now need to read like:
IIf(([City]="Chicago") And ([FY]>"13"),"Store A"
So my question is, instead of going into each individual saved query to change this calculated field in design view, would it be possible to just create a mod that i can go into once and make the change this calculated field for all saved queries within the db?