Before trying to display the record value, use as given below.
If not RS.BOF and not RS.EOF then
-the code to display the record value
END IF
Main Topics
Browse All TopicsHello Sir,
In VB 6, I am calling a Sql server2k SP, It is working fine when i run from the Code. but when i am calling that SP using EXe with command line parameters, It is giving the Error like
3021 ##### Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
Here I am opening the Recordset at client side as Adopenstatic as the cursortype and Adlockreadonly as the Locktype. and using Early binding and ADO version 2.7.
please give me any suggestions in this regard.
Thanks and Regards,
Govind
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: angelIIIPosted on 2007-09-26 at 00:22:12ID: 19961164
the error tells you that you opened a recordset, and try to use some field values, but the recordset is empty.
so, in short, you did not check the .eof and .bof being true to see if the recordset is empty or not.
now, the reason why the recordset IS empty is another problem, for which we needed to know what parameters and how the values are implemented.
a bit of relevant code would be helpful to see.