Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coord adding a field to a table and view used in a form
Message
 
À
21/04/2004 10:47:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00896899
Message ID:
00896909
Vues:
20
>VFP 7
>I need to add a field to at table. A form uses a view to retieve data from the table (which will be dependend on value of the new field). When I add the field to the table I get the error message 2005 with the message
>
>Error loading file - record number 14.  frmIntDepII <or one of its members>.Loading form
>or the data environment : Base table fields have been changed and no longer match view
>fields. View field properties cannot be set
>
>What does this mean and how to I fix it?
>
>TIA for any help.

Since underlying table changed (you added a field), you need to recreate the view. You will need to remove and re-add the updated view to the dataenvironment.

Note, if your view looks like SELECT * from ... then you will get an error when changing the underlying table structure. But if the view is created like
SELECT field1, field2, field3... you will not get an error. You will just need to add the new field to the view if necessary.

Similar thing may happen to a grid that refers to the table/view where you changed the fields. Make sure that the field in the table and in grid column controlsources match.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform