Jet DB Engines Process 'Data Has Changed' Error DifferentlyLast reviewed: March 29, 1996Article ID: Q129634 |
The information in this article applies to:
SUMMARYThe Microsoft Jet version 1.1 database engine behaves differently from the version 2.0 and 3.0 database engines when it comes to processing the 'Data Has Changed' error message.
MORE INFORMATIONThe Microsoft Jet version 1.1 database engine shipped with Visual Basic version 3.0. The Microsoft Jet version 2.0 database engine shipped with Microsoft Access version 2.0, and the The Microsoft Jet version 3.0 database engine shipped with Visual Basic version 4.0. In Jet 1.1, the error is triggered, by default, to warn the user whenever data is changed in the table. However, in Jet 2.0 and 3.0 this error is not automatically triggered when data changes. To cause the Jet 2.0 and 3.0 database engines to trigger the error message, you need to set the Options property for the recordset to dbSeeChanges (512).
Examples Using Visual Basic Version 4.0 SyntaxTo change the Options property on a data control to the proper value, use one of the following two methods:
Dim db As Database Dim rs As Recordset Set db = DBEngine.WorkSpaces(0).OpenDatabase("biblio.mdb") Set rs = db.OpenRecordset("authors", dbOpenDynaset, dbSeeChanges) Steps to Trigger ErrorAfter the Options property of the recordset is set, you can trigger the error by performing the following sequence of events:
|
Additional reference words: 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |