Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generate primary key
Message
From
27/08/2001 12:48:16
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
26/08/2001 22:02:39
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00549311
Message ID:
00549505
Views:
14
If you want it to generate on the client and also have muliple clients use the program the only thing you can do is have a tble that holds the current record counter. Then have your client read this value from the SQL table (make sure you deal with locking!) and increment it by one. It can then use this new value as the new record primary key.

Note: This is not a good way to do it as a table that holds a single field defies normalization.
Previous
Reply
Map
View

Click here to load this message in the networking platform