Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Starting File on a form :(

Status
Not open for further replies.

shenlon

Programmer
Jul 9, 2003
47
US
When I try to open a certain form in my project, I get an error that says &quot;Error loading file - record number 6. Header1 <or one of its members>.Parent : Object class is invalid for this container.&quot; The last thing I did was begin to name all of the headers for the columns, but I didn't get finished before I had to save and exit, and now when I try to open it back up to finish naming, I can't get in. Any ideas on how to fix this?
 
Well, if you are comfortable with looking at the SCX file directly ... you could open the SCX file and browse within record 6 to see what you find.

Otherwise, you might open the form and try to remove the object that might be causing the problem and try to rebuild it.

The best solution might possibly be to go to a previous version of that same form and rebuild it.

Good Luck.



Don


 
Make a copy of both the .scx and .sct files. Then, in the command window, type USE MyForm.SCX. Go to record 6 and delete it, then pack. Close the table, then MODI FORM MyForm. The form should open, but you'll be missing whatever object record 6 was.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports&quot;
 
If you do as Craig suggests ...

And you try opening the form but get the same message ...

It could be because you have multiple records which are flawed in some manner.

Just keep deleting the record indicated and trying to open the form until it opens.

Of course, each record you delete will result in an object missing from your form.



Don


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top