Microsoft KB Archive/136560

= FIX: RI Fails with 'Trigger Failed' if dBASE Compatibility ON =

Article ID: 136560

Article Last Modified on 3/24/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q136560



SYMPTOMS
After running the Referential Integrity (RI) Builder and selecting Cascade in the "Rules for Deleting" tab, you may receive a 'Trigger Failed' error message when you attempt to delete a record.



CAUSE
The current Visual FoxPro configuration has dBASE Compatibility set to ON.



RESOLUTION
Compatibility must be set OFF for the deletes to work with the RI Builder. You can either type SET COMPATIBILITY OFF in the Command window, or you can click Options on the Tools menu, click the General tab in the Options dialog box, and clear the dBase Compatibility check box.

There is currently no way to have dBASE compatibility ON and make deletes with referential integrity.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0b for Windows.



Steps to Reproduce Problem
 On the Tools menu, click Options, and then click the General tab. Select the dBase Compatibility check box, and click OK.  Type the following command in the Command window: MODIFY DATA samples\data\testdata  Using the right mouse button, click the relationship line between Customer and Orders, and select Referential Integrity. Under Rules for Deleting, click Cascade, and then click OK. Answer Yes to all further questions.</li> Browse the Customer table and delete the record where cust_id = BONAP.</li></ol>

Additional query words: VFoxWin fixlist3.00b buglist3.00

Keywords: kbbug kbfix kbenv KB136560

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.