How can you tell if the record is a select record? If the database table has a field 'Type' which can contain the value 'select' to identify that it is a select record then your SQL statement would look like this:
Code:
SELECT DISTINCT sect_area FROM sectors WHERE Type = 'select' ORDER BY sect_area
Also there is a problem with the HTML source generated using your ASP page, you are not closing each option tag created in the loop.
Code:
Response.Write("<option value='" & rs("sect_area") & "'>")
Response.Write(rs("sect_area") )
Response.Write "</option>" 'This is the line you need to add
And finally, what is the relevance of the SQL statement you included at the end of your post?
Quote:
|
quote:ssql="SELECT drawings.name,drawings.dtype,sectors.sect_count,dr awings.location,sectors.sect_area from drawings, sectors where drawings.name = sectors.name "
|
It does not seem to help describe your problem at all.
Regards
Owain Williams