Hi
I have the following sql statement which uses a form drop down list in the Where Statement.
However, I get an error saying
Object doesn't support this property or method.
Recordset2.Source = "SELECT BusName FROM BusinessInfo WHERE City = '"+ Request.form1("select") +"'";
Here is the form from which I am requesting a value in the above where statement(the form is working, I just put it for its name and the name of select list.
<form name="form1" method="post" action="">
<select name="select" >
<%
while (!Recordset1.EOF) {
%>
<option value="<%=(Recordset1.Fields.Item ("City").Value)%>">
<%=(Recordset1.Fields.Item("City").Value)%></option>
<%
Recordset1.MoveNext();
}
if (Recordset1.CursorType > 0) {
if (!Recordset1.BOF) Recordset1.MoveFirst();
} else {
Recordset1.Requery();
}
%>
</select>
PLease help
Thanks
I have the following sql statement which uses a form drop down list in the Where Statement.
However, I get an error saying
Object doesn't support this property or method.
Recordset2.Source = "SELECT BusName FROM BusinessInfo WHERE City = '"+ Request.form1("select") +"'";
Here is the form from which I am requesting a value in the above where statement(the form is working, I just put it for its name and the name of select list.
<form name="form1" method="post" action="">
<select name="select" >
<%
while (!Recordset1.EOF) {
%>
<option value="<%=(Recordset1.Fields.Item ("City").Value)%>">
<%=(Recordset1.Fields.Item("City").Value)%></option>
<%
Recordset1.MoveNext();
}
if (Recordset1.CursorType > 0) {
if (!Recordset1.BOF) Recordset1.MoveFirst();
} else {
Recordset1.Requery();
}
%>
</select>
PLease help
Thanks