G
GREGORY HICKMOTT
Can I add a where statement to a query at run time an what is the syntex
with opening the query
with opening the query
query design window under the field you want to search-----Original Message-----
Can I add a where statement to a query at run time an what is the syntex
with opening the query
.
put your criteria in [ ] on the criteria line of the
You can reassign the query statement by setting the SQL property of the
QueryDef.
This kind of thing:
dbEngine(0)(0).QueryDefs("Query1").SQL = "SELECT ...
That is probably more efficient than creating another query into the first,
i.e.:
SELECT * FROM Query1 WHERE ...
-1606758480"
this is just a sample of data that will change with a combobox selection
i looked at the sql view and got the syntex that worked
now i just have to replace my sample with the combobox tag