Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using an id field in a table
Message
 
 
À
26/06/2001 14:31:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00523735
Message ID:
00523743
Vues:
9
This message has been marked as the solution to the initial question of the thread.
>I have a table of customers. One of the fields is the custid (n 5,0) used in relationships with other tables. On one of my forms ( a simple form built with form wizard), I want the client to be able to add a new customer and have the custid field updated automatically. Right now it prompts the user to enter the value of the id. Most of my users aren't going to use the correct id. I would like the next available number to be used automatically. Any help would be appreciated. If this is unclear, another way to put it is I want a field similar to those found in MS Access (type: AutoNumber). TIA

Take a look at the article Primary keys at http://www.craigberntson.com/Articles/kb006.htm
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform