Solved

TAdoTable problem

Posted on 2002-07-18
3
1,024 Views
Last Modified: 2012-08-13
I'm trying to program database application with delphi. I'm using Access 2000 as database and open it with TAdoConnection. Database provider is Microsoft Jet Ole DB 4. I'm using TAdoTable to open the table. I use client-side cursor and ctstatic cursor type.

My problem is, if I'm closing the TADOTable when the table is empty, It creates an error. The error is:

EOleException
Either BOF or EOF is true or the current record has been deleted. Requested operation requires a current record.

Why is this happenning and how to handle it? Thank you.
0
Comment
Question by:agustinus
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 200 total points
ID: 7161769
goto
http://community.borland.com/article/0,1410,26606,00.html

you may find following article

ADOExpress update available for download - by John Kaster

Abstract:An update to ADOExpress for Delphi 5 and C++ Builder 5 is freely available for immediate download

ADOExpress Update Patch
There is an update to ADOExpress that is available for immediate download for Delphi and C++ Builder from our Developer Support pages.

This list includes only defects fixed since the Delphi 5 Update Pack (C++Builder 5 already includes the Delphi update pack fixes, but not these ADO update fixes). For a list of fixes included in ADOExpress update pack(s) go the following URL: http://www.borland.com/devsupport/delphi/fixes/delphi501/database.html#ado 

Here are some notes on the fixes in this update.

90383: When using MDAC 2.6, closing an empty dataset will result in an "Either EOF or BOF..." exception.

76529: Parameters information is not availalbe for stored procedures that have spaces in the procedure name.

76703: After a key violation occurs and then pressing escape to cancel the entry, the dataset appears to be empty.

76832: If using a lookup field and a record has been deleted from the dataset in batch update mode, then setting the FilterGroup to fgPendingRecords will raise an exception.

77421: An error occurs when trying to open a hierarchical dataset (from the shape provider), if the top level dataset is empty.

78478: If the linking fields have different names in the Master and Detail tables, a "Field not found" error is given when trying to insert a new detail.

79014: Multiselect grid operations do not work correctly when using server side cursors.

80521: Deleting a record with CacheSize > 1 on a TADODataset raises an exception that continually repeats.

81024: When closing, an ADO Dataset should not explicitly close the Recordset object if it has been assigned from an external source (through the Recordset property).

81183: The RecordStatus property returns the wrong value when inserting or appending a record.

81263: Data returned as adTinyInt or adUnsignedTinyInt from certain Providers may return incorrect values.

81327: Calling locate raises a "Record not found" exception when used on a filtered dataset and the value to locate exists in the table but is excluded by the filter.


meikl ;-)
0
 
LVL 5

Expert Comment

by:rmaranhao
ID: 7161900
That's it.

Apply the update and your problem is gone....

0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7161908
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

Suggested Solutions

Title # Comments Views Activity
Delphi OLE Error 8 95
Delphi TcxGrid group footer summary 3 213
Delphi: how to send PJL commands to printer 3 90
How to load 2 images in same column in Delphi 2 35
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

864 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

21 Experts available now in Live!

Get 1:1 Help Now