ChuckDrago
Active Member
- Joined
- Sep 7, 2007
- Messages
- 470
- Office Version
- 2010
- Platform
- Windows
Hi everyone,
I have a Master DB and many Input Sheets. They both have identical record layouts, so that the first is actually a collection of many of the second. The question is: what would be the best method to add the Input Sheets contents to the Master? Only caveats: If the part number (record ID) exists, the new input should overwrite it, and if it does not exist, the new record should be added at the bottom (the exit routine will sort and save).
I was thinking in a recursive loop where the first input record is grabbed, the Master DB is opened and activated, a find sub executes, looking for the part number, and overwriting or adding it, depending on the find result. Then change focus back to Input, grab next record, etc.
However, it looks rather cumbersome and I wonder if there is an Append method I know nothing about.
Thanks,
Chuck
I have a Master DB and many Input Sheets. They both have identical record layouts, so that the first is actually a collection of many of the second. The question is: what would be the best method to add the Input Sheets contents to the Master? Only caveats: If the part number (record ID) exists, the new input should overwrite it, and if it does not exist, the new record should be added at the bottom (the exit routine will sort and save).
I was thinking in a recursive loop where the first input record is grabbed, the Master DB is opened and activated, a find sub executes, looking for the part number, and overwriting or adding it, depending on the find result. Then change focus back to Input, grab next record, etc.
However, it looks rather cumbersome and I wonder if there is an Append method I know nothing about.
Thanks,
Chuck