Arg81
Well-known member
I've been requested by users of one of my apps to allow them to search on a number of fields.
This isn't dymanic in the sense that the parameter can change, it's dynamic in the sense that what they want to search for can change.
I.E.
I have 5 fields that are searchable, all comboboxes with different values. I know how to get the SQL parameter query to work using whatever value is selected.
However, User A might want to select values for only 2 fields and leave the other 3 blank.
User B might want to select values for 3 fields and leave the other 2 blank.
User C might want to select values for all 5 fields
I've tried following Implementing Dynamic WHERE-Clause in Static SQL - CodeProject
but none of them seem to work.
Any advice greatly appriciated.
This isn't dymanic in the sense that the parameter can change, it's dynamic in the sense that what they want to search for can change.
I.E.
I have 5 fields that are searchable, all comboboxes with different values. I know how to get the SQL parameter query to work using whatever value is selected.
However, User A might want to select values for only 2 fields and leave the other 3 blank.
User B might want to select values for 3 fields and leave the other 2 blank.
User C might want to select values for all 5 fields
I've tried following Implementing Dynamic WHERE-Clause in Static SQL - CodeProject
but none of them seem to work.
Any advice greatly appriciated.