Ok folks here is my challenge (and yours I hope). What I really want is some nuddging toward a solution, not so mush the code to accomplish it.
Below is a simple dynamic drop down list that provides a visitor with all of the product line of company Y. Here is the wrench, I want to format the item in the list (grey) that does does not yet have a product associated with it.
In other words, I have productLine table that has a complete product line of stuff that company Y sells. It doesn't mean that a product is listed on the web or in the Products table. The products table, naturally has all of the products with foriegn key to the Productline table.
>>>>>>>>>>>Drop down list<<<<<<<<<<<<<
<form action="/pages/SearchProductLine.asp" method="post" name="frmCat">
<%'populate drop down list
set rs1 = Server.CreateObject("ADODB.Recordset"
sqlstatement="SELECT * FROM ProductLine Order by SubCat"
rs1.Open sqlstatement, "DSN=somedatabase;UID=;PWD=;",1,3
%>
<SELECT NAME="frmSubCat">
<option value="">Product Line</option>
<%while not rs1.EOF%>
<option value="<%=rs1("SubCat"
%>"><%=rs1("SubCat"
%></option>
<%
rs1.MoveNext
wend
rs1.Close%>
</SELECT>
<input type="submit" name="frmSubmit1" value="Find">
</form>
Thanks for your interest,
Mike Diaz... Mike Diaz
tripletpublishing.com
Below is a simple dynamic drop down list that provides a visitor with all of the product line of company Y. Here is the wrench, I want to format the item in the list (grey) that does does not yet have a product associated with it.
In other words, I have productLine table that has a complete product line of stuff that company Y sells. It doesn't mean that a product is listed on the web or in the Products table. The products table, naturally has all of the products with foriegn key to the Productline table.
>>>>>>>>>>>Drop down list<<<<<<<<<<<<<
<form action="/pages/SearchProductLine.asp" method="post" name="frmCat">
<%'populate drop down list
set rs1 = Server.CreateObject("ADODB.Recordset"
sqlstatement="SELECT * FROM ProductLine Order by SubCat"
rs1.Open sqlstatement, "DSN=somedatabase;UID=;PWD=;",1,3
%>
<SELECT NAME="frmSubCat">
<option value="">Product Line</option>
<%while not rs1.EOF%>
<option value="<%=rs1("SubCat"
<%
rs1.MoveNext
wend
rs1.Close%>
</SELECT>
<input type="submit" name="frmSubmit1" value="Find">
</form>
Thanks for your interest,
Mike Diaz... Mike Diaz
tripletpublishing.com