I have a drop down box being populated from SQL data, how can I make the first line in the box blank, no value or text so it makes the user choose something or make the first line something like "Please select report"
Here is the code that I'm using to populate the drop down
Sub BuildOfc
Set rs = Server.CreateObject("ADODB.Recordset"
rs.Source = "uspSel_SalesOfc(" & urlRID & ""
rs.ActiveConnection = GetConn()
rs.Open
Response.Write "<SELECT class=""180box"" name=ofclist>"
Do While Not rs.EOF
Response.Write "<OPTION value=" & quot & rs("ID" & quot & ">" & rs("Name" & "</OPTION>"
rs.MoveNext
Loop
Response.Write"</SELECT>"
rs.Close
Set rs = Nothing
End Sub
Thanks in advance
Here is the code that I'm using to populate the drop down
Sub BuildOfc
Set rs = Server.CreateObject("ADODB.Recordset"
rs.Source = "uspSel_SalesOfc(" & urlRID & ""
rs.ActiveConnection = GetConn()
rs.Open
Response.Write "<SELECT class=""180box"" name=ofclist>"
Do While Not rs.EOF
Response.Write "<OPTION value=" & quot & rs("ID" & quot & ">" & rs("Name" & "</OPTION>"
rs.MoveNext
Loop
Response.Write"</SELECT>"
rs.Close
Set rs = Nothing
End Sub
Thanks in advance