Microsoft KB Archive/137955

= PRB: "Error loading file..." When Opening a Form =

Article ID: 137955

Article Last Modified on 8/21/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q137955



SYMPTOMS
When you are trying to open a form for modification, the following error appears:

Error loading file - ControlSource - record number x (where x is an integer). Parent will not allow this property setting for form1.grid1.column1.text1.controlsource.

You can't change the setting because the form will not open.



CAUSE
The form will not open if any errors are detected.



RESOLUTION

 * 1) In the Command window, use the USE Myform.scx command to open the form as a table. Then use the BROWSE command to browse the table.
 * 2) Go to the appropriate record that caused the error as indicated in the error message.
 * 3) Modify the Properties memo field by double-clicking it and removing the line that says ControlSource=.
 * 4) Close the Browse window.
 * 5) Type USE in the Command window to close the table.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Create a new form called Myform.scx. Add a table to the data environment Create a grid by dragging the table from the data environment to the form.  Change the properties in the following order:   Object                  Property          Value ---  Grid1                   ColumnCount       1 Grid1.Column1          Bound             .F.   Grid1.Column1.Text1     ControlSource Grid1.Column1          Bound             .T.                         Save and close the form.</li> Open the form. The error message appears.</li></ol>

Keywords: kbprb KB137955

-

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

© Microsoft Corporation. All rights reserved.