Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiuser environment
Message
De
12/03/2010 06:31:26
 
 
À
12/03/2010 06:06:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01454111
Message ID:
01454115
Vues:
63
You should change your code to find the auto reference when the record is actually saved. It's the only really safe and reliable way to do it.

>Hi,
>I have a problem in a multiuser environment when the auto referencing is on.
>When first user logs into a screen he gets the next auto reference correctly i.e AB130 and the code has a =TABLEUPDATE(.t.) at this point and he starts to fill in the screen, the second user goes into the same screen and gets the next auto reference AB131 also correct and same code =TABLEUPDATE(.t.).
>The first user clicks save and table is saved with correct values i.e auto ref AB130, then clicks new screen again but instead of getting the next auto reference AB132 he gets AB131 which is being used by the second user so when he has filled in the screen and clicks save, he gets duplicate reference message which is correct.
>
>My question is why is the reference AB131 not being saved to give me the next correct auto reference?. How can I get it to commit in multi user environment?
>
>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform