May 3, 201213 yr So I imported a table with a ton of records ID numbered starting with 1 and incrementing 1 at a time. I screwed somethign up when i imported the related records, and I just need to go delete all the ID numbers in the new table, and start over so record 1 ID number is 1, record 2 ID number is 2, etc. I know there is a quick way to do it in table view, but I can't remember... Thanks, any help would be greatly apprecaited.
May 3, 201213 yr If you have already established your auto-enter serial number in field definitions then you can do this: Back up your file Show all records Place your cursor in the ID field Select Records > Replace Field Contents Specify by serial - starting at 1 and incrementing by 1 Be sure to check 'update auto-enter options' so it updates your serial in your field definitions
May 3, 201213 yr Is there only one related record for each record? Or can the table with the correct IDs have more than one related record in the file with incorrect IDs.
May 3, 201213 yr Author If you have already established your auto-enter serial number in field definitions then you can do this: Back up your file Show all records Place your cursor in the ID field Select Records > Replace Field Contents Specify by serial - starting at 1 and incrementing by 1 Be sure to check 'update auto-enter options' so it updates your serial in your field definitions Where is the embarrased emoticon? Thanks! Again, you save the day!
May 3, 201213 yr This new version of the software doesn't have the embarrassed emoticon that I loved so much ( and used wayyyy tooooo often, LOL).
March 28, 201312 yr Thanks LaRetta. I am starting to go relational and am adding record id and idfk serial numbers to my database files. This worked like a charm to update my previous entries. I also picked up quite a few tips in the past few days making things work more effecient. Your scolding made me step back and look again for the good. Thanks. Mark Jones
March 28, 201312 yr LOL, well I've figured out a shortcut since then which I incidentally just posted on Tech Net so I don't even have to write it out again: A trick I discovered to quickly populate a table if you are using regular serials (which I prefer): Make note of your total record count in the table. All records do not need to be showing Go to field definition and create your ID Set it as a type CALCULATION first = Get ( RecordNumber ) Do NOT make it unstored - Exit out of definitions Go back in and change it to auto-enter serial (ADDED: and be sure to increment to the next number) It ignores the sort order or found set of existing records and it is faster than anything else I have timed, surely because it is not iterating through records. And you do not have to go to a layout to do it. And back up first and do NOT do this while served. But I change grouped data this way when normalizing data during migrations in many ways using different calculations. Stored calculations plant the data as regular data.
Create an account or sign in to comment