Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Key with one to many Form
Message
De
13/07/2001 13:01:49
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
13/07/2001 12:57:09
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00530359
Message ID:
00530379
Vues:
16
Leroy-

I left out some info.

>Yes, you can, but you have to write the function yourself, and then, if you table belongs to a DBC, which I recommend, declare the function as your default value.

...by MODI STRUC the table, the selecting the field, and putting something like

GetID( "Customers", "CustomerID", "CustomerID" ) in the Default Value box.


Note that if you are using referential integrity, you'll want to address the issue of how to update the FK in child tables when you add records.

I usually use table buffering on both the parent and child. I assign the parent id on an add, which results in "wasted" IDs if the user cancels, but my IDing routine recycles thru IDs so they eventually get used. Then I have the FK for the child table.

HTH.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform