I need to construct a WHERE clause based on a form submission that contains checkboxes and select boxes. So the result needs to be something like:<BR>SELECT ... FROM table WHERE request.form(checkbox1)=request.form(selectbox1) (AND request.form(checkbox2)=request.form(selectbox2) (AND request.form(checkbox3)=request.form(selectbox3))) <BR>So, I need to know how many, if any, ANDs I need, and I need to link the correct selectbox value to the corresponding checkbox value. I&#039;m not sure where to start. I know checkbox values come in comma delimited which doesn&#039;t help much.<BR>Any help would be greatly appreciated.