BUG: No Error Produced when Data Changed in DataControlLast reviewed: June 21, 1995Article ID: Q119244 |
The information in this article applies to:
SYMPTOMSThis article describes a scenario where two or more Visual Basic applications using the Microsoft Jet 2.0/Visual Basic 3.0 Compatibility Layer to edit and update the same record at the same time fail to produce error message 3197: "Data has changed; operation stopped."
STATUSMicrosoft has confirmed this to be a bug in the Standard and Professional Editions of Visual Basic for Windows, version 3.0, and the Jet 2.0/Visual Basic 3.0 Compatibility Layer. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
Data1 DatabaseName BIBLIO.MDB Sample MDB in the VB directory. Data1 RecordSource Authors The Authors table is in BIBLIO.MDB. Text1 DataSource Data1 Bind the text box to the data control. Text1 DataField Author Put author's name in the text box. Command1 Caption Update What the button does.
Sub Command1_Click() Data1.RecordSet.Update End Sub
WORKAROUNDTo work around this problem, add the following lines of code to your Form_Load Event().
Data1.Refresh 'Make sure the DatabaseName and RecordSource 'properties are set before you do this. Data1.RecordSet.Edit Data1.RecordSet.Update |
Additional reference words: 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |