Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a part number
Message
From
31/01/1997 09:14:53
 
 
To
31/01/1997 08:29:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00018858
Message ID:
00018947
Views:
32
>Function NextNo
>Calculate Max(Part_no) to m
>Return m + 1

If you delete your last record and add a new one, this means the new one will have the same primary key as the last one. Even if this will work, we always suggest to always use unique key based on an incremental value and not applying a function on the current data.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform