|
Hi to all,
I have some problem plz see that and tell me if u found any fault
when i run this script i found the error of "Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record."
and the Code
<%
Dim i,sql,masID
sql = "Select * From Products Where Ishotpick='1' "
Set rs = server.CreateObject ("ADODB.Recordset")
rs.Open sql,cn,2
%>
<tr>
<%
Do While Not rs.EOF
%>
<%
Dim sql11
sql11 = "Select * From ProductAttributes Where ProductID="&rs("ProductID")
response.Write(sql11) // When we Print this query its running fine
Set rs11 = server.CreateObject ("ADODB.Recordset")
rs11.Open sql11,cn,2
if rs11.eof then
response.Write "Empty"
else
response.Write "Some Data Found" // this line execute (means data found)
end if
response.Write rs11("ProductID") // if i want to print this valid varibale value then error occure
%>
<%
rs.MoveNext()
if rs.EOF then
Exit Do
End if
Loop
%>
__________________
[COLOR=Pink]Faisal Zafar[/COLOR]
|