Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

StarTrek

[Resolvido] ADODB.Field error '800a0bcd'

Recommended Posts

Pessoal,

 

Não consigo sumir com este erro, vocês poderiam me ajudar!

 

abaixo esta o erro:

 

ADODB.Field error '800a0bcd'

 

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

 

/anpei/ixconferencia/Entrada.asp, line 101

 

Sei q algo q esta retornando vazio. mais o q ??!?!

 

<%
		Dim Evento_ID
		' ALTERAR PELO EVENTO ID DO EVENTO
		Evento_ID = 158
		' ALTERAR PELO IDIOMA ID (PT-BR OU EN-US)
		Idioma_ID = "PT-BR"
	
		Set oPal = Server.CreateObject("ADODB.RecordSet")
		
		oPal.Open	"SELECT " &_
		"	Pal.Palestra_ID, " &_
		"	Pal.Titulo, " &_
		"	Pal.Palestra_Status, " &_
		"	Pal.Data_Inicio, " &_
		"	Pal.Data_Termino, " &_
		"	Pal.Data_Criacao, " &_
		"	ISNULL(Pal.Imagem_Preview,'imagens/ImageBank/Images/Anpeei/MiniLogo.jpg') AS 'Imagem_Preview', " &_
		"	Pal.Palestra_Intervalo_ID, " &_
		"	Pal.Palestra_Intervalo_Valor, " &_
		"	Idi.Idioma_ID AS Idioma " &_
		"FROM " &_
		"	Palestra AS Pal " &_
		"INNER JOIN palestra_idioma AS Idi ON Pal.Palestra_ID = Idi.Palestra_ID " &_
		"WHERE " &_
		"	Pal.Evento_ID = " & Evento_ID &_
		"	AND Idi.Idioma_ID = '" & Idioma_ID & "'" &_
		"	AND Pal.Palestra_Status IN ('LA', 'LE', 'OA', 'OE') " &_
		"ORDER BY " &_
		"	Pal.Data_Inicio asc" _
		, ConnGeral, 1, 1
		
		If Not oPal.EOF Then
		HasLive = False
		MostraTitulo = 1	
		%>
		<%	
		dim todaysDat 
		Do While Not oPal.EOF 
		dim todaysDate
		todaysDate=oPal("Data_Inicio")
	%>		
	<tr>
		<td>
			<div id="Descricao">
				<div style="margin-top:5px; float:left">
				<img width="90px" height="80px"  src="/<%= oPal("Imagem_Preview") %>" alt="Imagem_Evento" /><br />
				</div>
				<div style="margin-top:40px; margin-left:100px; height:20px; width:150px">
				<a href="#" style="font: bold 12PX Verdana" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><%= oPal("Titulo") %></a><br />
				<a href="#" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><% Response.write FormatDateTime(todaysDate,2)%></a>
				</div>
				<div style="margin-left:70px; margin-top:53px">
				<a href="#" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><img src="Imagens/btn-Assista.gif" /> </a>
				</div>
			</div>
		</td>
		<td>
<% if not oPal.EOF Then 
			oPal.movenext %>
	ESTA È A LINHA 101 !!!!!  <% todaysDat=oPal("Data_Inicio") %>
				<div id="Descricao">
					<div style="margin-top:5px; float:left">
						<img width="90px" height="80px"  src="/<%= oPal("Imagem_Preview") %>" alt="Imagem_Evento" /><br />
					</div>
					<div style="margin-top:40px; margin-left:100px; height:20px">
						<a href="#" style="font: bold 12PX Verdana" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><%= oPal("Titulo") %></a><br />
						<a href="#" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><% Response.write FormatDateTime(todaysDat,2)%></a>
					</div>
					<div style="margin-left:70px; margin-top:53px">
						<a href="#" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><img src="Imagens/btn-Assista.gif" /> </a>
					</div>
				</div>
			<% end if %>
		</td>
	</tr>
	<%oPal.movenext
	loop%>	
	</table>
	</div>
	<% 	End If %>

 

Obrigado espero que você's possam me ajudar !!

Compartilhar este post


Link para o post
Compartilhar em outros sites

Cara,

 

Se você olhar no code que eu postei esvrevi assim ESTA é a linha 101 !!!!

 

Este é o codigo da Entrada.asp.

 

 

Vlw

Compartilhar este post


Link para o post
Compartilhar em outros sites

Ted, ele já está dentro do WHILE.

 

Ao invés de usar Do While utilize apenas While.

 

Do While Not oPal.EOF -> While Not oPal.Eof

 

Loop -> Wend

Compartilhar este post


Link para o post
Compartilhar em outros sites

É pra você alterar o que já está lá. Substitui de acordo com o exemplo acima.

Compartilhar este post


Link para o post
Compartilhar em outros sites

continuou com mesmo erro ...

 

ele não tem mais registro para colocar na proxima coluna como faço para ver se o opal.movenext esta vazio ou nulo ??

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tente dessa forma:

<%
		Dim Evento_ID
		' ALTERAR PELO EVENTO ID DO EVENTO
		Evento_ID = 158
		' ALTERAR PELO IDIOMA ID (PT-BR OU EN-US)
		Idioma_ID = "PT-BR"
	
		Set oPal = Server.CreateObject("ADODB.RecordSet")
		
		oPal.Open	"SELECT " &_
		"	Pal.Palestra_ID, " &_
		"	Pal.Titulo, " &_
		"	Pal.Palestra_Status, " &_
		"	Pal.Data_Inicio, " &_
		"	Pal.Data_Termino, " &_
		"	Pal.Data_Criacao, " &_
		"	ISNULL(Pal.Imagem_Preview,'imagens/ImageBank/Images/Anpeei/MiniLogo.jpg') AS 'Imagem_Preview', " &_
		"	Pal.Palestra_Intervalo_ID, " &_
		"	Pal.Palestra_Intervalo_Valor, " &_
		"	Idi.Idioma_ID AS Idioma " &_
		"FROM " &_
		"	Palestra AS Pal " &_
		"INNER JOIN palestra_idioma AS Idi ON Pal.Palestra_ID = Idi.Palestra_ID " &_
		"WHERE " &_
		"	Pal.Evento_ID = " & Evento_ID &_
		"	AND Idi.Idioma_ID = '" & Idioma_ID & "'" &_
		"	AND Pal.Palestra_Status IN ('LA', 'LE', 'OA', 'OE') " &_
		"ORDER BY " &_
		"	Pal.Data_Inicio asc" _
		, ConnGeral, 1, 1
		
		If Not oPal.EOF Then
		HasLive = False
		MostraTitulo = 1	
		%>
		<%	
		dim todaysDat
		Do While Not oPal.EOF
		dim todaysDate
		todaysDate=oPal("Data_Inicio")
	%>		
	<tr>
		<td>
			<div id="Descricao">
				<div style="margin-top:5px; float:left">
				<img width="90px" height="80px"  src="/<%= oPal("Imagem_Preview") %>" alt="Imagem_Evento" /><br />
				</div>
				<div style="margin-top:40px; margin-left:100px; height:20px; width:150px">
				<a href="#" style="font: bold 12PX Verdana" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><%= oPal("Titulo") %></a><br />
				<a href="#" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><% Response.write FormatDateTime(todaysDate,2)%></a>
				</div>
				<div style="margin-left:70px; margin-top:53px">
				<a href="#" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><img src="Imagens/btn-Assista.gif" /> </a>
				</div>
			</div>
		</td>
		<td>
<%
oPal.movenext
 if not oPal.EOF Then
			 %>
	ESTA È A LINHA 101 !!!!!  <% todaysDat=oPal("Data_Inicio") %>
				<div id="Descricao">
					<div style="margin-top:5px; float:left">
						<img width="90px" height="80px"  src="/<%= oPal("Imagem_Preview") %>" alt="Imagem_Evento" /><br />
					</div>
					<div style="margin-top:40px; margin-left:100px; height:20px">
						<a href="#" style="font: bold 12PX Verdana" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><%= oPal("Titulo") %></a><br />
						<a href="#" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><% Response.write FormatDateTime(todaysDat,2)%></a>
					</div>
					<div style="margin-left:70px; margin-top:53px">
						<a href="#" onclick="window.open('/Player/Index.asp?Palestra_ID=<%= oPal("Palestra_ID") %>','Palestra','width=790,height=540,top=0,resizable=no,scrollbars=no');return(false);"><img src="Imagens/btn-Assista.gif" /> </a>
					</div>
				</div>
			<%
				oPal.movenext
			 end if %>
		</td>

	</tr>
	<%
	loop%>	
	</table>
	</div>
	<%	 End If %>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.