Solved

BOF/EOF error  w/ADO  VB6.0

Posted on 1998-12-25
2
932 Views
Last Modified: 2012-05-04
I have a very simple Access db with full share rights. I am using a Find method to locate a specific record then write this to the UI.  I can only locate a few records before I get an BOF or EOF error message.  When I try to handle this by capturing the error and saying movefirst or movelast (or even movenext and moveprevious) this does not seem to help.  In either case my program seems to get stuck on the first or last record and will not find any more records.  What am I doing wrong?
Thanks.  
0
Comment
Question by:gcassel
2 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1452498
Lets see your code. You may have your search too restrictive.

M

0
 
LVL 1

Accepted Solution

by:
Renato102098 earned 50 total points
ID: 1452499
It is more flexible use SQL for example
Select field1, field2, field3 from Table Where field1 = 'nnn' ... field2 like 'mmm&' .... order by field3 Asc ....
This is more quick if you set CursorLocation = adUseServer and you lost same benefit.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now