Getting Error message Can you Help!
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/regions/Webpages/HHSC_Voice_Consolidation/TMP2qe1hvhr4j.asp, line 109
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/regions/Connections/regional_personnel1.asp" -->
<%
%>
<%
u_input = trim(request.form("u_input"
) 'u_input is the varible for user input
' the trim function removes any blanks around the the use input
u_field=request.form("u_field"
'the dropdown varible for user inputted search field
if u_input <> "" then ' If the user entered a value query the db
accessdb="Regional_Personnel" ' name of the access db
table_name="HHSC_VoiceInventory" ' name of the table within the access db
cn="driver={microsoft access driver (*.mdb)};"
cn=cn & "dbq=" & server.mappath(accessdb)
set rs = server.createobject("ADODB.Recordset"
Recordset1.ActiveConnection = MM_regional_personnel1_STRING
sql = "select * from HHSC_VoiceInventory where " & u_field & " like '%%" & u_input & "%%' "
response.write sql
rs.Open sql, cn
if rs.eof or rs.bof then
response.write "No results found..."
observations=0
else
observations=1
end if 'end check for observations
end if 'end check for user input
%>
<% 'If there are observations then display them
if observations > 0 then %>
<table>
<tr>
<% 'Write the field names
for each table_element in rs.fields %>
<td><b><%= table_element.name%></B></TD><%
next %>
</tr>
<tr>
<% 'Write the values
rs.movefirst
do while not rs.eof
for each cell in rs.fields %>
<td><%= cell.value %></td><%
next %>
</tr>
<% rs.movenext
loop %>
</table>
<% end if 'end of check of obs for display %>
<form action ="<%= request.servervariables("script_name"
%>" method="post">
<input type="text" name="u_input" value="<%= u_input %>">
<select name="u_field" size="1">
<option <% ' write out all the search fields and select
if u_field = "ID" or u_field = "" then
response.write "selected "
end if
%>value="ID">ID</option>
<option <%
if u_field = "Region" then
response.write "selected "
end if
%>value="Region">Region</option>
<option <%
if u_field = "Address" then
response.write "selected "
end if
%>value="Address">Address</option>
</select>
<input type="submit" value="Submit">
</form>
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/regions/Webpages/HHSC_Voice_Consolidation/TMP2qe1hvhr4j.asp, line 109
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/regions/Connections/regional_personnel1.asp" -->
<%
%>
<%
u_input = trim(request.form("u_input"
' the trim function removes any blanks around the the use input
u_field=request.form("u_field"
if u_input <> "" then ' If the user entered a value query the db
accessdb="Regional_Personnel" ' name of the access db
table_name="HHSC_VoiceInventory" ' name of the table within the access db
cn="driver={microsoft access driver (*.mdb)};"
cn=cn & "dbq=" & server.mappath(accessdb)
set rs = server.createobject("ADODB.Recordset"
Recordset1.ActiveConnection = MM_regional_personnel1_STRING
sql = "select * from HHSC_VoiceInventory where " & u_field & " like '%%" & u_input & "%%' "
response.write sql
rs.Open sql, cn
if rs.eof or rs.bof then
response.write "No results found..."
observations=0
else
observations=1
end if 'end check for observations
end if 'end check for user input
%>
<% 'If there are observations then display them
if observations > 0 then %>
<table>
<tr>
<% 'Write the field names
for each table_element in rs.fields %>
<td><b><%= table_element.name%></B></TD><%
next %>
</tr>
<tr>
<% 'Write the values
rs.movefirst
do while not rs.eof
for each cell in rs.fields %>
<td><%= cell.value %></td><%
next %>
</tr>
<% rs.movenext
loop %>
</table>
<% end if 'end of check of obs for display %>
<form action ="<%= request.servervariables("script_name"
<input type="text" name="u_input" value="<%= u_input %>">
<select name="u_field" size="1">
<option <% ' write out all the search fields and select
if u_field = "ID" or u_field = "" then
response.write "selected "
end if
%>value="ID">ID</option>
<option <%
if u_field = "Region" then
response.write "selected "
end if
%>value="Region">Region</option>
<option <%
if u_field = "Address" then
response.write "selected "
end if
%>value="Address">Address</option>
</select>
<input type="submit" value="Submit">
</form>