MOD2000: Error Message When You Try to Save Function Changes in Code Librarian (236559)



The information in this article applies to:

  • Microsoft Office 2000 Developer

This article was previously published under Q236559

SYMPTOMS

While you are trying to apply changes to a piece of code in Code Librarian, you may receive the following error message:
CodeLibrarian
Code Librarian Assert:
Module:modMain
Sub:CodeFormSaveData()
Err:3021
Error:Either BOF or EOF is True, or the current record has been deleted; the operation requested by the application requires a current record.

CAUSE

This problem occurs if one user deletes a function while another user is trying to modify the same function. The user who is modifying the function will see the error message after clicking Apply or OK.

RESOLUTION

You can reduce the accidental occurrence of this error message by clicking Options on the View menu, and then clicking to select the Prompt before Deleting check box. This will prompt users for confirmation before code is physically deleted from the database. However, if the code is deleted before the changes are saved by another user, the message will still appear.

MORE INFORMATION

Steps to Reproduce the Behavior

The following steps refer to two users working with the same Code Librarian database. The users are referred to as User 1 and User 2.
  1. Users 1 and 2 start the Visual Basic Editor.
  2. Users 1 and 2 open the Code Librarian through the Add-ins menu.
  3. User 1 clicks New on the Code menu.
  4. User 1 enters a name for the function and a code snippet, clicks Apply or OK, and then closes the window.
  5. User 2 clicks Open on the File menu.
  6. User 2 chooses the newly created database by User 1, and then clicks OK.
  7. User 1 opens the function and makes a modification to the code snippet.
  8. User 2 right-clicks the function, and then clicks Delete.
  9. User 1 clicks Apply or OK to save changes.
Note that the message that is mentioned in the "Symptoms" section appears.

Modification Type:MajorLast Reviewed:7/31/2001
Keywords:kbbug kbCodeLibrarian kberrmsg KB236559