tangierc Posted March 7, 2006 Posted March 7, 2006 I want to reindex my database so that the number of records match the index number. There are already 1500 records. The database is not being used yet so it's ok for me to do this now, but I don't know how to tell FM to reindex all records. Tangier
Vaughan Posted March 7, 2006 Posted March 7, 2006 Go into the field definition, storage. Turn indexing off. Leave define fields. Then go back in and tuirn indexing on again.
tangierc Posted March 8, 2006 Author Posted March 8, 2006 Thanks for that, but it didn't do anything. Maybe I did it wrong. What is appening is that my index field just adds an auto seial for each record. Oddly the last entry is 1517 (for 1517 records), but the database only has 1502 records. What I want to do is reindex so that the numbe of records matches the key index field. FM 8
Raybaudi Posted March 8, 2006 Posted March 8, 2006 Ok If you haven't any related file based of your index, you can do this: 1) DEflag the autoenter option of a serial number of the index field 2) Make a new calculated field: RecordNumber with this calc. Get(RecordID) 3) Sort record ascending by field RecordNumber 4) Put the cursor in the field index of the first record 5) From Record-->Replace Field contents...--> Replace with serial numbers, initial value 1, increment by 1 6) Look at the last number assigned to index 7) Flag the autoenter option of a serial number of the index field with "next value" = one more of your records 8) Delete the field RecordNumber
Recommended Posts
This topic is 6897 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now