Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting records that may have other related records
Message
De
05/03/2000 10:04:26
 
 
À
05/03/2000 08:20:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00341841
Message ID:
00341849
Vues:
28
>I have a situation where I need to delete records that may have many related records.
>
>One way I have been tossing around in my mind is if I select a record that may have records in several other tables and to a SELECT to find them then present the info to the user in a message box with the option to cancel. If the say go then delete the records. I guess at some point you would pack the tables ...
>
>What is a good way to do this?
>
>John

Set up a relationship in the dbc for the tables in question, and use the RI wizard to generate RI code. You can then look at the code it generates to decide if you would like to modify it to ask for user confirmation.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform