Sam92Legacy
Technical User
I am writing a parameter query where not only are the criteria for the query based on the value of fields in a form, but I also need to specify what column to use based on the value of a combo box in the form. For instance, if the value selected in the form is "Bob Total" I need to select the column [Others Summary].[Bob Total] in my query. Right now I am using an IIf statement to do the task, but I would rather find a more efficient solution that does not require updating the the column's expression when ever I add rows in the combo list (and doesn't end with 40 parentheses). Does anyone have any suggestions? Thanks.