I have a table made by a query that consolidates various fields from linked SQL tables.
I need to provide a user friendly search/filter to provide users with records based on any of the following fields within the table: magazine name, date, account name or acct id or any combination of these fields.
My first attempt used find record which was ok for one set of criterion. However, this just was not user friendly enough.
I used the query grid/SQL select ** where field criterion = Like "*" & [Forms]![formname]![textbox] & "*"; staggering the code from each OR line of the query grid (and of course coding the proper formname and textbox) - but I cannot get the OR portion to work properly. The query returns all the values in the table. If I remove 3 of the "Likes" and run the query with only one code of criteria, it works like a dream.
I know I'm close. But I can't quite figure what I'm messing.
Please help me see what is probably right in front of me.
And as usual, thanks for all your help - this place keeps me sane.
I need to provide a user friendly search/filter to provide users with records based on any of the following fields within the table: magazine name, date, account name or acct id or any combination of these fields.
My first attempt used find record which was ok for one set of criterion. However, this just was not user friendly enough.
I used the query grid/SQL select ** where field criterion = Like "*" & [Forms]![formname]![textbox] & "*"; staggering the code from each OR line of the query grid (and of course coding the proper formname and textbox) - but I cannot get the OR portion to work properly. The query returns all the values in the table. If I remove 3 of the "Likes" and run the query with only one code of criteria, it works like a dream.
I know I'm close. But I can't quite figure what I'm messing.
Please help me see what is probably right in front of me.
And as usual, thanks for all your help - this place keeps me sane.