I am using a query embedded on a form as a SourceObject and it's a Crosstab query that's based on another query. That's why the SQL of the base query itself needs to change instead of just using a filter on the subform.
I need to alter the WHERE clause of the base query when a button is clicked on the master form. I can do it using the SQL property of the QueryDef object, but I don't want to use DAO.
I need to alter the WHERE clause of the base query when a button is clicked on the master form. I can do it using the SQL property of the QueryDef object, but I don't want to use DAO.