Newbies sherrick Posted June 5, 2009 Newbies Posted June 5, 2009 I imported a list of contacts from an excel spread sheet and when doing so the the imported items do not get ID numbers for each contact. If i switch to a table view I am able to enter ID numbers into the field, however when I create a new blank record the ID numbers given to the new record can and do repeat the same number and cause the database issue when linking to other database files. Any help on how I can get the data base to recognize all the existing ID numbers would be appreciated.
bcooney Posted June 7, 2009 Posted June 7, 2009 Welcome to the forums! If you are importing contacts that are new to your database, you need to make sure that the checkbox for perform auto-entry is selected, and that you have an auto-enter serial ID field in the table. Then the last part of your script should sort the table by ID (desc), go to last record, and use the SetNextSerialValue to the ID +1. This sets the counter so that any new record will have an ID greater than all existing records.
comment Posted June 7, 2009 Posted June 7, 2009 If auto-enter options are allowed to perform during the import, there should be no need to adjust the serial generator afterwards. Whether auto-enter options SHOULD be allowed to perform is another question.
Recommended Posts
This topic is 5647 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