Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run a form on network
Message
 
À
07/04/2001 08:40:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00493175
Message ID:
00493177
Vues:
13
>I have a 'form'(master-detail) that run on network,
>If there are 2 or more run 'form' to input data at the same time,
>then occuring error "...invalid key..." or the key is invalid between tables(master-detail)
>What can i do to solve this problem ?


I think this is because you are assigning the same primary key in both forms.
What you can do is creating a keynumbers file where you store the keynumber to be used.
Each time you need to create a new record, you look into this file first, get the value out of it, and replace the value with value + 1

In the Tasmanian Traders example is a sample of this in the NewID function.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform