Okay, another way...
USE the table, then:
COPY STRUCTURE EXTENDED TO CUSTOMERTEMP.DBF
Look at the customerTemp.dbf, you'll see that field_next and field_step have values in them for the autoinc field.
>I am using the following code to update a field to auto incrementing. How can I test to see if the field has already been changed so the following code doesn't get continually run?
>
>
>USE Customer IN 0 EXCLUSIVE
>SELECT Customer
>CALCULATE MAX(CustId) TO lnNextValue
>ALTER TABLE Customer ALTER COLUMN CustId I AUTOINC NEXTVALUE lnNextValue + 1
>
>
>Thanks
>
>John
Steve Gibson