SeaRuidoso
IS-IT--Management
I am in the midst of porting an old Lotus DB to Access. I need to be able to allow a user to input an indefinite number of one-character search criteria into a query/filter in order to generate a report.
I want to use Access' syntax for the purpose -- 'Like "B" or "O" or ...' -- but it seems like simply feeding that line to the query as a parameter results in it being treated as a string constant rather than an actual command. Anyone know any ways to get around this?
FYI - I have a mailing list with the usual fields plus one special field which denotes which groups the individual belongs to. "a" would denote alcoholics, "b" denotes baptist. So for the person I just described the special field would contain "ab" or "ba" - the order is irrelevant. Another person could be just "a" or just "b". The query needs to be able to handle the variation.
-Sea
I want to use Access' syntax for the purpose -- 'Like "B" or "O" or ...' -- but it seems like simply feeding that line to the query as a parameter results in it being treated as a string constant rather than an actual command. Anyone know any ways to get around this?
FYI - I have a mailing list with the usual fields plus one special field which denotes which groups the individual belongs to. "a" would denote alcoholics, "b" denotes baptist. So for the person I just described the special field would contain "ab" or "ba" - the order is irrelevant. Another person could be just "a" or just "b". The query needs to be able to handle the variation.
-Sea