Hi all,
I have several multi-select listboxes that are used to filter a report. I would like to allow the user not to select anything from the listbox, but that produces an error when the variable is blank? How can I fix this w/out having to resort to a dozen SELECT CASE? So if the variable strWhere is blank I get the error. . . .Thank you!
I have several multi-select listboxes that are used to filter a report. I would like to allow the user not to select anything from the listbox, but that produces an error when the variable is blank? How can I fix this w/out having to resort to a dozen SELECT CASE? So if the variable strWhere is blank I get the error. . . .Thank you!
Code:
DoCmd.OpenReport "RPT", acViewReport, , "[Budget Fiscal] IN(" & strWhere & ")" & _
"And [Building Number] IN(" & strWhereB & ")" & "And [budget] IN(" & StrWhereC & ")" & _
"And [Organization Code] IN(" & strWhereD & ")"