Skip 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.

Can anyone tell me why this gives me an error 1408?

Featured Replies

  • Newbies

Hello,

I'm new to Filemaker and ODBC / SQL updates, but have done this in other languages with no problems. Rewriting an old VFP system into Filemaker... can anyone tell me why this is giving me error 1408? I have a valid DSN."

This is in my "SQL Text" box on the "Execute SQL" line of a script:
UPDATE SYS_TAB SET F1032 = " & $ln_F1032 & "WHERE ID=1"

I've also tried setting another field as the "WHERE":
"UPDATE SYS_TAB SET F1032 = " & $ln_F1032 & "WHERE F902 = '00185721' "

There's only one record in the SQL table.

Thanks.

I am mostly guessing here (because your description is rather sketchy) but these points stand out:

4 hours ago, RCrosier said:

This is in my "SQL Text" box

If you want to incorporate a variable in the SQL statement, you must use the Calculated SQL text option instead of SQL text.

4 hours ago, RCrosier said:

UPDATE SYS_TAB SET F1032 = " & $ln_F1032 & "WHERE ID=1"

This is missing the opening quote before UPDATE and a space (or return) before WHERE.

4 hours ago, RCrosier said:

"UPDATE SYS_TAB SET F1032 = " & $ln_F1032 & "WHERE F902 = '00185721' "

Here too there is no whitespace separating between the variable and the WHERE clause.

  • Author
  • Newbies
29 minutes ago, comment said:

I am mostly guessing here (because your description is rather sketchy) but these points stand out:

If you want to incorporate a variable in the SQL statement, you must use the Calculated SQL text option instead of SQL text.

This is missing the opening quote before UPDATE and a space (or return) before WHERE.

Here too there is no whitespace separating between the variable and the WHERE clause.

Thanks, I had noticed that there wasn't a space in front of the "WHERE" and corrected that, right after I posted this. The missing quote was a copy/paste problem.

Since I posted this question, I found/realized that I can update the SQL tables using FileMaker commands, which AI kept telling me I could NOT do... I tried a small experiment and it worked, so I think I'm good now, without trying to figure out why my SQL is not working with the ODBC for now.

Oh, and I did try the Calculated SQL text option as well, same/similar errors.

Edited by RCrosier

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.