Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating Sequential Unique Numbers
Message
From
17/08/2001 02:44:09
 
 
To
16/08/2001 08:21:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00544550
Message ID:
00545162
Views:
12
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform