daemonskin1
11-10-2005, 12:54 PM
Hello Forum,
MS Access "wannabe" here... http://vbaexpress.com/forum/images/smilies/banghead.gif
I wonder if someone can help me with this particular problem:
I want to run query always against the same table without always performing repetitive manual tasks:
Here is the schema:
-------------------
SELECT ... FROM ...
WHERE something = "x"
OR something = "y"
OR something = "z"
or ...
-----------------
Next time I want to run same query but:
SELECT ... FROM ...
WHERE something = "x1"
OR something = "y2"
OR something = "z2"
or ...
-----------------------------------
Next, would be the same query against x3, y3, z3 and so forth.
Now, how can I import values I want to query against(lets say new values x4, y4, z4...) at the particular place in the query (in between "") without each time manually doing the typing? That is, I would like to import x4, y4, z4 from the notepad or Excel Spreadsheet into that same query. Obviously, if I have hundreds of values to query against this can be laborious work doing it each time manually.
Thanks for the help!
MS Access "wannabe" here... http://vbaexpress.com/forum/images/smilies/banghead.gif
I wonder if someone can help me with this particular problem:
I want to run query always against the same table without always performing repetitive manual tasks:
Here is the schema:
-------------------
SELECT ... FROM ...
WHERE something = "x"
OR something = "y"
OR something = "z"
or ...
-----------------
Next time I want to run same query but:
SELECT ... FROM ...
WHERE something = "x1"
OR something = "y2"
OR something = "z2"
or ...
-----------------------------------
Next, would be the same query against x3, y3, z3 and so forth.
Now, how can I import values I want to query against(lets say new values x4, y4, z4...) at the particular place in the query (in between "") without each time manually doing the typing? That is, I would like to import x4, y4, z4 from the notepad or Excel Spreadsheet into that same query. Obviously, if I have hundreds of values to query against this can be laborious work doing it each time manually.
Thanks for the help!