Gary,
You've asked this question about half a dozen times, and I keep trying to work with you but you insist on sending a personal email with your response. People can't help you, nor can anyone learn from your example, if I work privately with you on this.
As I said before, you need a SINGLE search page which has a SINGLE form tag that points to a SINGLE results page. That results page needs some code in it to check every input from the form tag and dynamically builds the SQL string. Do this with a series of "If...Then" statements:
Code:
searchtradenameAZSQL = "select products.name as ProductName, suppliers.name as SupplierName, weight.name as WeightName, color.name as ColorName, twill.name as twillName, " & _
" tradename.name as TradeName, suppliers.ID as SupplierID " & _
" from products, tradename, suppliers, weight, color, twill, pointers where " & _
" pointers.Productid = products.id and " & _
" pointers.supplierid = suppliers.id and " & _
" pointers.weightid = weight.id and " & _
" pointers.colorid = color.id and " & _
" pointers.twillid = twill.id and " & _
" pointers.tradenameid = tradename.id order by weight.name, tradename.name, color.name, twill.name, products.name and "
Dim bCriteriaMatched
bCriteriaMatched = False
If Request.Form("tradename") <> "" Then
bCriteriaMatched = True
searchtradenameAZSQL = searchtradenameAZSQL & " tradename.name like '"& Request.Form("tradename") &"' "
End If
If Request.Form("color") <> "" Then
If bCriteriaMatched Then
searchtradenameAZSQL = searchtradenameAZSQL & " AND "
End If
bCriteriaMatched = True
searchtradenameAZSQL = searchtradenameAZSQL & " color.name like '"& Request.Form("color") &"' "
End If
If Request.Form("twill") <> "" Then
If bCriteriaMatched Then
searchtradenameAZSQL = searchtradenameAZSQL & " AND "
End If
bCriteriaMatched = True
searchtradenameAZSQL = searchtradenameAZSQL & " twill.name like '"& Request.Form("twill") &"' "
End If
'''Wash, Rinse, Repeat...