Hello. I am attempting to base a complicated query (which I do not create in SQL in code because of it's complexity) that has a number of parameters that are pulled from a form. The query works like a peach as long as a value is selected in combobox. The problem arises when the user does not want to query based on a particular field...They will indicate this by not selecting anything in that particular combobox. However, the query does not work under this situation.
I have seen an example of how to make this work, however, I can't seem to locate it right now.
So, basically, I am looking for help on how to feed the query (that is looking for a parameter ) the logic to return all values for that field (I know it invlolves the "*", however, it does not seem to work).
Any ideas would be greatly appreciated.
Thanks
I have seen an example of how to make this work, however, I can't seem to locate it right now.
So, basically, I am looking for help on how to feed the query (that is looking for a parameter ) the logic to return all values for that field (I know it invlolves the "*", however, it does not seem to work).
Any ideas would be greatly appreciated.
Thanks