Hi sunvalley,
Can you please start a new thread when you post a question not related to the initial question? Makes it easier for everyone to find and manage this thread.
That said, can't you create a WHERE clause dynamically based on what is selected??
E.g.
sqlWhere = " WHERE SomeCondition"
If Request.Form("SomeDropDown") <> "" Then
sqlWhere = sqlWhere & " SomeField = " % Request.Form("SomeDropDown")
End If
If Request.Form("SomeOtherDropDown") <> "" Then
sqlWhere = sqlWhere & " SomeOtherField = " % Request.Form("SomeDropDown")
End If
This way, you effectively ignore the drop downs that don't have a value.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004