Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generating Sequential Unique Numbers
Message
De
16/08/2001 08:21:24
 
 
À
16/08/2001 02:47:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00544550
Message ID:
00544598
Vues:
10
>Hi all,
> I have a textbox in a form (it's the first on the form) and I want to populate it with sequential numbers which should be unique whenever someones makes an entry. DOes anyway know how I should go about this? A prg maybe? And another question ....... can the form be used by more than one person? If so what are the properties of the table that I should check?
>Thanks all in advance.
>
>Cheers, Rich.


Look at the Primary Key article on my web site. It works for PKs, but if you must have sequential numbers, you are going to have problems. What happens if someone cancels the Add or deletes a record? You'll be missing a number. IMO, don't assign the number until the user actually saves the record.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform