Budd said:
Hi tcgaines,
Just wondering, are the fields requested in your queries always the same? In other words are you pulling from the same fields each time but only requesting a different Zipcode?
BUD
Yes, I am pulling the same fields each time, but requesting different zipcodes. however, i am selecting multiple zipcodes. for example, chicago is subdivided into 8 parts. for north chicago, i:
Select tblCustomer.*
From tblCustomer
Where ZipCode = 89089 OR 23432 OR 95435 OR 45425 OR 45243 OR 54322 OR 54325 OR 54325 OR 54354 OR 54325 OR 45254;
All of these zipcodes are considered to be in NORTH CHICAGO. I have hundreds of queries identical to this (with the exception of zipcodes, ranging from one zipcode to 30 zipcodes), each selecting customers from a particular area.
For examples sake, and simplicity, suppose i now wanted to select every customer who's name is john, from N.Chicago (the above query), as well as from every other query, if i chose to, one at a time, as needed.
As far as scalibilty is concerned, it seems to me (mind you, im an amateur) that it will be much more efficient to write one query that would be availible to execute "on top" of the others, rather than modifying each of the others.
The reason I am hesitant to modify each and every query is because the criteria for the "One Query," that i have in mind, will change regularly.
I feel strange laying this all out for you, as if its being done for me. that is not at all my intention. thank you all for any assistance.