PIP Administrator Displays Error When All Records Are Deleted (304144)
The information in this article applies to:
- Microsoft BizTalk Server Accelerator for RosettaNet 1.0
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.
Modification Type: | Major | Last Reviewed: | 9/12/2001 |
---|
Keywords: | kbprb KB304144 |
---|
|