paulafernandes
02-12-2003, 12:27 PM
Hi! Here am I again...
I have to do an ASP page that must have 8 combobox.
I'm doing this way:
I do a query to my database (SQL Server 7.0) and store it in a recordset. Then I create a combobox and I display the first result, then I do "objrecordset.movenext", create a second combobox and put on it the second result and so on...
The problem is that, for example, I have 3 results of the query, and when I create the 4º combobox and I do the "objrecordset.movenext" it gives me the "Either BOF or EOF is True.." error.
I'm doing:
if (objrecordset.EOF) then
Response.Write "Empty"
else
objrecordset.MoveNext
Response.Write objrecordset("doc")
end if
but I still get that error.
What am I doing wrong????
Paula
I have to do an ASP page that must have 8 combobox.
I'm doing this way:
I do a query to my database (SQL Server 7.0) and store it in a recordset. Then I create a combobox and I display the first result, then I do "objrecordset.movenext", create a second combobox and put on it the second result and so on...
The problem is that, for example, I have 3 results of the query, and when I create the 4º combobox and I do the "objrecordset.movenext" it gives me the "Either BOF or EOF is True.." error.
I'm doing:
if (objrecordset.EOF) then
Response.Write "Empty"
else
objrecordset.MoveNext
Response.Write objrecordset("doc")
end if
but I still get that error.
What am I doing wrong????
Paula