FIX: Page Not Refreshed When Pointing to a Deleted Record

ID: Q190753


The information in this article applies to:


SYMPTOMS

If you choose to delete a record on an Active Server Pages (ASP) page, when the record has been already deleted by another user, the page is not refreshed to indicate that the record was already deleted.


RESOLUTION

You can work around this by checking for the return value of the delete operation. DeleteRecord() function returns false if the operation failed. If you want to see the new data, you need to catch the return code and do a move on the recordset.


STATUS

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

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed


MORE INFORMATION

Sample code to illustrate the work around mentioned above:


   Sub Button1_onclick()
     if  not Recordset1.deleteRecord() then
   Recordset1.move(0)
     end if
   End Sub 

Additional query words:


Keywords          : kbservicepack kbVisID600bug kbWebServer kbGrpASP kbVS600sp2 kbVS600SP1 kbVS600sp3fix 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: May 24, 1999