Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Best way to update a table via ODBC?

Featured Replies

Hello all,

I am about to update two FM7 tables via an ODBC connection, and need some advice. The tables consist of customers and products. I only need to update the existing records and then add any new records.

Problem: After I choose the Update existing records in found set, and check the Add remaining data as new records FM appends to my database. I started with 513 records and ended up with 1056. There were only 30 new customers that should've been added. Did I miss a step?

The ODBC source is coming from as AS/400 file. Any advice will be appreciated. Thanks!!!

If you choose Update existing records it overwrites your data record by record, it does not do data comparison. So record 1 of your imported data overwrites record 1 of your FM data.

If you want it to do data comparison you need to choose Update Matching records and then click on the mapping arrow and change it to a = to tell what field you want to use as a comparison. If you want to add new records make sure you check Add remaing data as new records.

Hope this helps

  • Author

:exactly:

I imported with the Match option and checked the Add remaining data as new records. VOILA FM updated the existing records and added the remaining as new records correctly.

:yay:

Before I was deleting ALL RECORDS and importing to an empty table, which was not good because when I went back to my invoices they were all gone!!!!Thankfully I had the foresight to test this first with a copy of the database. THANK YOU THANK YOU!!!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.