The following code which sets the default value of a select menu to equal Session("VendorPartNumber") is causing the error message: "runtime error '800a005e' Invalid use of Null: 'CStr'/.."
Code:
<option value="<%=(Recordset1.Fields.Item("ManufacturerPartNumber").Value)%>" <%If (Not isNull(Session("VendorPartNumber"))) Then If ((Recordset1.Fields.Item("ManufacturerPartNumber").Value) = CStr(Session("VendorPartNumber"))) Then Response.Write("SELECTED") : Response.Write("")%>></option>