Hi everyone. I'm trying to implement an ANOVA analysis for some data and it requires to go back and forth a little. I'm not a fan of nesting enough queries within the same SQL since the code ends taking dozens of lines and it is a pain to discover what goes wrong when it does and editing can be tiresome too. Also, as of Access 2003 (we're soon updating to 2013, AFAIK), the handling of parenthesis and braces are poor on some cases and queries sometimes don't compile.
So I'm creating several querydefs and using them in cascade to get the analysis done. Additional benefit of having to edit a querydef just once and have the change reflected on all further queries. However, this raises the question about whether it could affect the performance. I plan to modify the Filter property on runtime once people choose the data they want to peform the ANOVA on. I expect the last query to restrict the processing to the filtered data but how about the previous ones? Do they also get restricted automatically or they perform the calculus on all their domain and then the last query retrieves only the data it wants?