I'll Try to keep this short and sweet.
I know in SQL you can put
Where Table1.Field1 = Forms![Form Name]![Combo Box Name]
How can I make the Combo box Select Which Field to Filter By
The Combo box has a list of fields from the table
Where Forms![Form Name]![Combo Box Name] = Some Value
I'm guessing I'll need to have VBA dynamically create the Query, but I was hoping to avoid having to do that.
Background.
I have a table used for scoring phone calls. It has multiple columns based on different categories. Each month there are incentives given out based off who has "Met" a couple of selected categories for the month.
A query has already been created that pulls the data, however I need to go into the SQL and rewrite which fields are being selected each month. One Month might be Greeting and Gaining Control, the next month might be Closing and Notes. There are 17 categories currently so writing a query for each combination is out of the question.
Thanks.
-Red