T
Tom Ross
Hi
I want to open a query from a button on the form. I want to set the WHERE
clause based on other information on the form.
I have generated the SQL string but:
docmd.openquery wants the name of an existing query that does not give me
the oppurtunity to set the SQL from my form info
docmd.runsql will not do a SELECT query, only action query
docmd.runmacro allows a macro to select the named query but doesn't let me
cusomize the SQL based on my form info
What option have I not tried? It must be a simple action
thanks
Tom
I want to open a query from a button on the form. I want to set the WHERE
clause based on other information on the form.
I have generated the SQL string but:
docmd.openquery wants the name of an existing query that does not give me
the oppurtunity to set the SQL from my form info
docmd.runsql will not do a SELECT query, only action query
docmd.runmacro allows a macro to select the named query but doesn't let me
cusomize the SQL based on my form info
What option have I not tried? It must be a simple action
thanks
Tom