Solved

BOF/EOF error  w/ADO  VB6.0

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 54
vb6 connector to mongodb 2 82
I need help embedding an image as HTML in my vb.net application 3 67
How to read File Date Created using VB6 8 39
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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

770 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