Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I reset the next value for an AutoIncrement field
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00814302
Message ID:
00814309
Views:
11
>Good Afternoon,
>
>I have a free table used to store Daily Transactions until the Day's activity is finalized when they are appended to a Table which stores the history.
>
>I have an autoincrementing integer field on this Transaction table that I would like to reset to 0 when the day is finalized and the table is zapped.
>
>Is there a way to do this short on dropping the column and readding it.
>
>Any assistance would be greatly appreciated.
>

Michael,
The Alter Table command has been enhanced for VFP 8. Try to use the Alter column clause and specify a new NEXTVALUE and STEP.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform