doughemi Posted March 20, 2014 Posted March 20, 2014 When I create a calculation field with the following ExecuteSQL function, it works fine: ExecuteSQL ( "SELECT DISTINCT "Regatta Contact AMYAnum" FROM "Regatta Schedule" WHERE OnLineReg = ? "; "" ; "¶"; 1) But when I add a further qualifier ExecuteSQL ( "SELECT DISTINCT "Regatta Contact AMYAnum" FROM "Regatta Schedule" WHERE OnLineReg = ? and Date > CURRENT_DATE() "; "" ; "¶"; 1) It returns the dreaded "?". What is the correct syntax?
Lee Smith Posted March 20, 2014 Posted March 20, 2014 Automatic message This topic has been moved from "Calculation Engine (Define Fields)" to "FQL or FileMaker Query Language".
volkovpunk Posted March 20, 2014 Posted March 20, 2014 ExecuteSQL ( "SELECT DISTINCT "Regatta Contact AMYAnum" FROM "Regatta Schedule" WHERE OnLineReg = ? and "Date" > ? "; "" ; "¶"; 1; Get(CurrentDate)) 1
doughemi Posted March 20, 2014 Author Posted March 20, 2014 Thanks. I think I tried every permutation of delimited quotes and question marks besides that one.
volkovpunk Posted March 20, 2014 Posted March 20, 2014 And be careful: in sql statement you should surely quote field names like Date, Order (as they are reserved words) 1
Recommended Posts
This topic is 3957 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now