deejay_totoro
Registered User.
- Local time
- Today, 16:56
- Joined
- May 29, 2003
- Messages
- 169
Hello ,
I am not sure of the best way to achieve the end results - so hoping someone can help!
I have many queries in one database that all use the same criteria, for example, in a table with a list of names, I select the following names::
Jones
Smyth
Cameron
Blair
Brown
The list is actually quite long and changes (randomly) almost daily. So everyday I have to edit the criteria in all of my queries, ie:
"jones" or "smyth" or "cameron" or "blair" or "brown"
Becomes
"McDonald" or "Stevenson" or "Busby" etc...
With so many queries using the exact same criteria, I think it would be better to store this criteria in a module, and send it to each query as required. Then I would only have to edit the criteria in the module, as each query would take its criteria from the module.
I don’t know where to start with this one. Any help would be appreciated!
Cheers!
dj_T
I am not sure of the best way to achieve the end results - so hoping someone can help!
I have many queries in one database that all use the same criteria, for example, in a table with a list of names, I select the following names::
Jones
Smyth
Cameron
Blair
Brown
The list is actually quite long and changes (randomly) almost daily. So everyday I have to edit the criteria in all of my queries, ie:
"jones" or "smyth" or "cameron" or "blair" or "brown"
Becomes
"McDonald" or "Stevenson" or "Busby" etc...
With so many queries using the exact same criteria, I think it would be better to store this criteria in a module, and send it to each query as required. Then I would only have to edit the criteria in the module, as each query would take its criteria from the module.
I don’t know where to start with this one. Any help would be appreciated!
Cheers!
dj_T