Solved

BOF/EOF error  w/ADO  VB6.0

Posted on 1998-12-25
2
933 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

947 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

16 Experts available now in Live!

Get 1:1 Help Now