The information in this article applies to:
SYMPTOMSMicrosoft Access appears to delete a record in an attached SQL table, but the record is not actually deleted. The record will reappear when you requery the table. CAUSEThe Microsoft SQL Server driver that comes with Microsoft Access version 1.0 incorrectly indicates that the result of the SQL delete action is successful. RESOLUTION
To correct this problem, you must DROP the current trigger and CREATE a new
delete trigger on the SQL Server that uses the RAISERROR command instead of
the PRINT command. This method causes Microsoft Access version 1.0 to not
delete the record and display the following error messages:
where <MESSAGE> is the message you specified in the RAISERROR command. STATUSMicrosoft has confirmed this to be a problem in Microsoft Access version 1.0. This problem was corrected in Microsoft Access version 1.1. MORE INFORMATION
If you try to delete a record from an attached SQL table that has a delete
trigger that performs a ROLLBACK and a PRINT action on the SQL Server,
Microsoft Access version 1.0 appears to delete the record and then displays
a message box asking you to verify your deletion. The record is actually
not deleted and reappears when you requery the table by pressing SHIFT+F9,
choosing Show All Records from the Records Menu, or closing and reopening
the table.
Steps to Reproduce Problem
REFERENCES"Microsoft SQL Server Language Reference," version 4.2, pages 88-93, 137, 203-204, and 214-216 Additional query words: ODBC
Keywords : kbusage OdbcOthr |
Last Reviewed: March 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |