ACC2000: "No Current Record" Error Message When Setting Bookmark to LastModified

ID: Q224932


The information in this article applies to:
  • Microsoft Access 2000

Moderate: Requires basic macro, coding, and interoperability skills.

This article applies only to a Microsoft Access database (.mdb).


SYMPTOMS

In Microsoft Data Access Objects (DAO), if you set the Bookmark property to LastModified, you may receive the following error message:

No Current Record.


CAUSE

You may receive this error if you are adding many records to a large recordset, and you try to set the Bookmark property to LastModified, as in the following example:


MyRecordset.Bookmark = MyRecordset.LastModified 


RESOLUTION

Use the MoveFirst or MoveLast method before you set the bookmark to LastModified, as in the following example:


MyRecordset.MoveFirst
MyRecordset.Bookmark = MyRecordset.LastModified 


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words: pra

Keywords : kberrmsg kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: September 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.