I am trying to have a report open with one of the fields filtered with user-selected criteria in a list box with the multiselect property set to simple.
I've managed to get the selections into a string using the ItemsSelected and ItemData properties. Now I'm trying to pass the string as a variable in the Wherecondition argument of the Docmd.OpenReport command. It seems that the Wherecondition clause will not take the variable. Maybe my entire approach is off? Any help would be appreciated. [sig][/sig]
I've managed to get the selections into a string using the ItemsSelected and ItemData properties. Now I'm trying to pass the string as a variable in the Wherecondition argument of the Docmd.OpenReport command. It seems that the Wherecondition clause will not take the variable. Maybe my entire approach is off? Any help would be appreciated. [sig][/sig]