Forums
This topic is locked
HELP PLEASE
Posted 19 Jan 2003 09:07:57
1
has voted
19 Jan 2003 09:07:57 Jaime Romo posted:
Hello there im new with ASP and i wounder if someone can help me please iget this error </p>
<p>Error Type:<br>
ADODB.Field (0x800A0BCD)<br>
Either BOF or EOF is True, or the current record has been deleted. Requested
operation requires a current record.<br>
/intranet/clientes/busqueda.asp, line 87</p>
<p> </p>
<p><%@LANGUAGE="VBSCRIPT"%><br>
< html><br>
<
link rel=stylesheet href="../1/estilo1.css" type="text/css"><br>
< head><br>
<
title>Welcome to Homepage</title><br>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br>
< /head><br>
<
body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<
table class="box1" width="50%" border="1" align="center" cellpadding="0" cellspacing="0"><br>
<tr><br>
<td><div align="center">Busqueda de Clientes</div><br>
</td><br>
</tr><br>
< /table><br>
<
p>&nbsp;</p><br>
<
p></p><br>
< %<br>
link = 0<br>
if request("buscar"<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle> = 0 then<br>
%><br>
<
table width="86%" border="1" align="center" cellpadding="0" cellspacing="0" class="box2"><br>
<tr><br>
<td width="60%">Escribe el nombre, mail o telefono del cliente
que deseas<br>
buscar.</td><br>
<td width="49%"><form action="busqueda.asp" method="post" name="busqueda" id="busqueda"><br>
<div align="center"><br>
<input name="busqueda" type="text" id="busqueda2" class="campo1"><br>
&
nbsp;&nbsp;&nbsp;<br>
<input type="submit" name="Submit" value="Buscar"><br>
<input name="buscar" type="hidden" id="buscar" value="1"><br>
</div><br>
</form><br>
</td><br>
</tr><br>
< /table><br>
<
p>&nbsp;</p><br>
< %end if%><br>
< p><br>
<
% if request("buscar"<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle> = 1 then %><br>
<
!--#include file="../Connections/intranet.asp" --><br>
< %<br>
dim busqueda<br>
busqueda = 0<br>
Dim Recordset_busqueda<br>
Dim Recordset_busqueda_numRows<br>
Set Recordset_busqueda = Server.CreateObject("ADODB.Recordset"<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle><br>
Recordset_busqueda.ActiveConnection = MM_intranet_STRING<br>
Recordset_busqueda.Source = "SELECT * FROM dbo.intranet_clientes WHERE
nombre = '%%busqueda%%' OR apellido LIKE '%%busqueda' OR telefono LIKE
'busqueda%%' OR email LIKE '%%busqueda%%'"<br>
Recordset_busqueda.CursorType = 0<br>
Recordset_busqueda.CursorLocation = 2<br>
Recordset_busqueda.LockType = 1<br>
Recordset_busqueda.Open()<br>
Recordset_busqueda_numRows = 0<br>
%><br>
< /p><br>
<
table class="box2" width="60%" border="0" align="center" cellpadding="0" cellspacing="0"><br>
<tr><br>
<td><br>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#666666"><br>
<tr><br>
<td width="33%"><%=(Recordset_busqueda.Fields.Item("nombre"<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>.Value)%></td> //*****************this
is line 68*********************//<br>
<td width="33%">&nbsp;</td><br>
<td width="34%">&nbsp;</td><br>
</tr><br>
</table><br>
</td><br>
</tr><br>
< /table><br>
<
p>&nbsp; </p><br>
< /body><br>
< /html><br>
< %<br>
Recordset_busqueda.Close()<br>
Set Recordset_busqueda = Nothing<br>
%><br>
< %end if%>
</p>
</body>
</html>
Visit my home page
www.cancuncoral.com
Replies
Replied 20 Jan 2003 14:22:06
20 Jan 2003 14:22:06 andre maas replied:
Your recordsset is empty.
Create a text "no records found" and show this if the recordset is empty.
Find this in serverbehaviors.
Sukses
Create a text "no records found" and show this if the recordset is empty.
Find this in serverbehaviors.
Sukses