krappleby025
Programmer
ok i have a database i am retrieveing records from and this is the code i am using
<% Set level1= con.execute("SELECT * FROM representatives WHERE sponsersrepid=" & repmain("repnumber")
Do while level1.EOF
level1.movenext
loop
%>
now the connection and retrieval works, but some records do not exist and i am getting the following error
ADODB.Field error '80020009'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/test.asp, line 0
this is because their is no record, how can i stop this
thanks
<% Set level1= con.execute("SELECT * FROM representatives WHERE sponsersrepid=" & repmain("repnumber")
Do while level1.EOF
level1.movenext
loop
%>
now the connection and retrieval works, but some records do not exist and i am getting the following error
ADODB.Field error '80020009'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/test.asp, line 0
this is because their is no record, how can i stop this
thanks