Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate not updating/ Local Views/ Update Conflict
Message
De
05/07/2003 08:00:01
 
 
À
04/07/2003 15:44:56
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00807074
Message ID:
00807159
Vues:
23
Hi John

>My problem is that if I try to edit that particular product/record again from within the Production screen VFP crashes because the TABLEUPDATE() failed and I receive an "Update conflict" error message?
>
>Does anyone know why this is going on?

Are you re-querying the view after the insert?

If you have default values being inserted in the tables (like a primary key), the view will not have that value and so when you try and update it, VFP sees a conflict because the table has a value that is not in the view.

Use the REQUERY( '[viewname]' ) function to refresh the view after an insert to ensure that the view is properly synchronized with the table
----
Regards
Andy Kramek
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform