DeanWilliams
Programmer
Hi,
I have a search form and a stored procedure that returns the resultant recordset. It works by using tags on each control on the form to store the name of the corresponding parameter in the stored procedure.
So basically whatever values the user types in get parsed into the sql statement.
However now the users would like another 14 numeric fields to be searched for but instead of looking for the actual values I need to find where these numeric values are not null.
So I have checkboxes on the form. I cannot now think of a way of checking each of the ticked fields for null values without having to have 14 IF statements in my procedure with the Select statement repeated and altered accordingly.
I am sure there must be an easy way using either IsNull, NullIf or Case statements or something like that.
Please can anyone help.
Thanks,
Dean
I have a search form and a stored procedure that returns the resultant recordset. It works by using tags on each control on the form to store the name of the corresponding parameter in the stored procedure.
So basically whatever values the user types in get parsed into the sql statement.
However now the users would like another 14 numeric fields to be searched for but instead of looking for the actual values I need to find where these numeric values are not null.
So I have checkboxes on the form. I cannot now think of a way of checking each of the ticked fields for null values without having to have 14 IF statements in my procedure with the Select statement repeated and altered accordingly.
I am sure there must be an easy way using either IsNull, NullIf or Case statements or something like that.
Please can anyone help.
Thanks,
Dean