Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to ADD records, but can edit.
Message
From
06/05/1999 15:23:47
Jorge Haro
Independent Consultant
Juarez, Mexico
 
 
To
05/05/1999 20:38:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00215569
Message ID:
00215836
Views:
24
I don't know how to do it through the wizard, I never tried it, usually stay away from them. But a way to do it is creating a table with two fields the name of the table and the next or last key, and of course a function to get the next number from ths table, you can put the function in the stored procedures of the database and set the default value for the field to the name of the function (NextId() for example).

Or you can create an external function and call it after the default procedure for the add button with something like

dodefault() && To do whatever the wizard put in
replace keyfield with NextId() && Filling the key number

Either way this is very common so there's probably a function that does it in the file section
Previous
Reply
Map
View

Click here to load this message in the networking platform