Microsoft KB Archive/304144

= PIP Administrator Displays Error When All Records Are Deleted =

Article ID: 304144

Article Last Modified on 9/12/2001

-

APPLIES TO


 * Microsoft BizTalk Accelerator for RosettaNet 1.0 Enterprise Edition

-



This article was previously published under Q304144



SYMPTOMS
When you use the PIP Administrator, you may receive the following error message after you delete the last record:

PIP Administrator

Run-time error '3021':

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



CAUSE
This error occurs because the PIP Administrator fails to check for an empty recordset before deleting records.



RESOLUTION
To resolve this problem, modify the code of the PIP Administrator. To make the modification and rebuild the PIP Administrator, you must have Microsoft Visual Basic 6.0 installed.  Open the Project \Program Files\Microsoft BizTalk Server Accelerator for RosettaNet\PIP SDK\Source\Maintenance\PRNMaintenance.vbp. In the code for FMain.frm, locate mnuDelete_Click sub.  Change the following line: If m_rsPIPs.RecordCount = 0 Then to: If m_rsPIPs.RecordCount < 0 then  Build the executable and replace the old PIP Administrator.



Steps to Reproduce Behavior:

 * 1) Open the PIP Administrator.
 * 2) Delete all records that are listed.
 * 3) After the last item is deleted, try to use the delete function again.

Keywords: kbprb KB304144

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.