Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a form with Insert
Message
De
14/02/2000 09:15:54
 
 
À
10/02/2000 07:42:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00329908
Message ID:
00331676
Vues:
29
It sounds as if you are doing something like this:

Append blank
[fill in form]
[check for errors]
replace x with m.x, ...


If this is so, I would recommend that you have the user fill in the form using memory variables of the same name as the database fields. Do all of your validations against these fields. When you are truly ready to put the record in the database, peroform an INSERT INTO [databasename] FROM MEMVAR. This is more efficient, gets rid of the kinds of problems you are discussing, and ensures that there are no orphan records.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform