Hello all,
I have a form that has multiselect listboxes that on the click event will update a strWhere text field that is used when opening a report to pass in the where clause. that part works fine. (example of strWhereVanID In(1,4,5))
However, i want to use part of that same field the (In(1,4,5) to pass into the query in the event the user would rather export the data to excel. When I set the criteria to Forms!theform!theField or Forms!theform!theField is null in the query criteria it gives me a "expression is too complex...."
However if i type in the field value from the form, for example In(1,4,5) then the query runs fine. I have tried using eval() with no luck.
Thanks for any suggestions.
I have a form that has multiselect listboxes that on the click event will update a strWhere text field that is used when opening a report to pass in the where clause. that part works fine. (example of strWhereVanID In(1,4,5))
However, i want to use part of that same field the (In(1,4,5) to pass into the query in the event the user would rather export the data to excel. When I set the criteria to Forms!theform!theField or Forms!theform!theField is null in the query criteria it gives me a "expression is too complex...."
However if i type in the field value from the form, for example In(1,4,5) then the query runs fine. I have tried using eval() with no luck.
Thanks for any suggestions.