Hi,
I am trying to use TWO multiselect listboxes to filter a report before opening. I get a Typemismatch error at this line.
What am I doing worng? strWhereA and strWhereB store the selections in a string. Thank you!
I am trying to use TWO multiselect listboxes to filter a report before opening. I get a Typemismatch error at this line.
Code:
Rem OPEN THE REPORT LIMITED TO SELECTION
DoCmd.OpenReport "UNIQUE REPORT", acViewReport, , "[Year] IN(" & strWhere & ")" And _
"[Building] IN(" & strWhereB & ")"
What am I doing worng? strWhereA and strWhereB store the selections in a string. Thank you!