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.

What is the fastest??

Featured Replies

Hi All,

I need to make sure my source table has a matching memberID before i try to update it in a ExecuteSQL step.

Any ideas on which is the best way to go...

1) Perform an import/count: SELECT COUNT (*) FROM myTable WHERE memberID = 1234

with that answer placed in a temp_table decide to update or not based on result

(1 or greater has found a match; 0 means not match was found). I would have to perform this for EVERY record i want to update (put in a loop)

2) Perform an import of all the memberIDs in myTable then compare them in FileMaker with the memberID i want to update (not sure how yet!! maybe use a relationship or a find script step and test if FoundCount = 0. Find would be slower then relationship right??)

thanks for your input/comments!

Dan

What about just attempting the update, and if it fails (error returned) then branch your script to do something else (like create a new record in the data source that has the appropriate ID, or display a custom error dialog which gives you options)

Dana

  • Author

That was my original idea...

See my other posts in this section...

When i tried the UPDATE.... in the ExecuteSQL script step no error

is generated when there is no match!!

Or if there is an error (something like SQL_NO_DATA) it is not passed back

to FM via Get(LastODBCerror).

The only result i get with Get(LastODBSerror) is 00000.

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.