If I have multiple products with various categories, and ultimately I want one report which groups and sums and categorizes appropriately for each model, can I build a table to set up the appropriate criteria for each product?
I know this can be done via VBA with Recordsets and SQL, but future users may not be as good at VBA as I (and heck, I am getting decent at it but am FAR from advanced), so I'd like to avoid having things built into VBA. If I can produce one query that includes all products appropriately summed, it will help a lot, as future users can merely define the product criteria appropriately.
The problem I'm having is with the syntax of the definitions. If criterion1 in the table is"*", the query criteria must be written as "Like [criterion1]"; however if criterion1 is "'citrus' or 'tropical'", the query produces no results for that product. Is there an example of exactly how the syntax of the criteria should be somewhere?
Thanks!
I know this can be done via VBA with Recordsets and SQL, but future users may not be as good at VBA as I (and heck, I am getting decent at it but am FAR from advanced), so I'd like to avoid having things built into VBA. If I can produce one query that includes all products appropriately summed, it will help a lot, as future users can merely define the product criteria appropriately.
The problem I'm having is with the syntax of the definitions. If criterion1 in the table is"*", the query criteria must be written as "Like [criterion1]"; however if criterion1 is "'citrus' or 'tropical'", the query produces no results for that product. Is there an example of exactly how the syntax of the criteria should be somewhere?
Thanks!
Last edited: