Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double invoice numbers in network
Message
 
À
18/10/2005 00:55:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01059841
Message ID:
01059842
Vues:
10
>In my invoice form, I have a readonly field which shows invoice number. The code in the gotfocus is :
>
>
>sele inv
>nInvno=inv.invno
>repl inv.invno with inv.invno+1
>flush
>
>
>but somtimes my client end up two invoices with same invoice number. The system is used over the network. How can I stop this. Your input will appreciated.

You have to lock InvNo record, while one person save or just before to save you have to recheck for existing InvNo to lock of afew seconds record and to save
nevertheless that when you start transaction you get next invNo from DB
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform