Jump to content
Sign in to follow this  
James Gill

Cannot get simple ExecuteSQL Query to run

Recommended Posts


I'm relatively new to SQL but I'm pretty experienced in Filemaker. Because of the addition of the ExecuteSQL command, I'm judging whether or not to move a solution that I'm currently working on over to FM12 so that I can potentially simply the ERD but I'm having trouble even getting a relatively simple ExecuteSQL calculation to run without error.

Basically, I have a table in my solution called ITAssignments that contains an text field called "id and a text field called "Who". I created a TO dedicated to the IT Assignments called SQL_ITAssignments

Here's my query:

ExecuteSQL ( "


FROM SQL_ITAssignments

WHERE Who = James"

; "" ; ¶ )

Unfortunately it returns a "?" and I'm not sure why...

Share this post

Link to post
Share on other sites

You need single quotes for the text string

ExecuteSQL ( "SELECT id FROM SQL_ITAssignments WHERE Who = 'James'" ; "" ; "" )

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

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