Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generating Sequential Unique Numbers
Message
De
17/08/2001 02:44:09
 
 
À
16/08/2001 08:21:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00544550
Message ID:
00545162
Vues:
13
>>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.


Thanks Craig for this. I'll try it out. I didn't choose for the PK to be sequential ..... the scientist I'm working for wants it to be that way. I hope I can convince him that it isn't necessary.

Thanks, Richard
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform