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.

Updating Sql with ' in data?

Featured Replies

  • Newbies

Greetings,

I am using Fm 9 advanced to import data from a MS Sql server, process it and return updated info to the Sql Server.

The problem I have run into is when trying to update a field with information that contains a "'".

Example being LastName is O'Hare. When using the executeSql script step to update the info (Sql Query is from a calc field) I get an error 5.

The calculated script looks like this

UPDATE Passes INSERT Last = 'O'Hare' WHERE PASSNO = '1234565'

If I change the last name to "O Hare" it works fine.

Obviously the problem is not the SQL server not being able to process it because the "O'Hare" came from the Sql database. Thus placed in there by the record creating program.

Other possibly relavent info

MAC Osx 10.4.10

Actuall Technology Sql driver for Filemaker

Any Ideas would be great!

Thanks

Monty

  • 2 weeks later...

Monty --

Try escaping the quote with another quote, like this:

UPDATE Passes INSERT Last = 'O''Hare' WHERE PASSNO = '1234565'

-- Tim

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.