doughemi Posted July 2, 2013 Posted July 2, 2013 I am trying to use ExecuteSQL() for the first time, and have run into the dreaded "?" for a very simple query. I want to count all the records in the Games table where the field Won_Lost contains "WON". My calc is ExecuteSQL ( "SELECT count(*) FROM Games WHERE Won_Lost = "WON" "; "" ; "" ) What have I done wrong?
David Jondreau Posted July 3, 2013 Posted July 3, 2013 The string WON should have single quotes, not double quotes (and hence no escaping either).
doughemi Posted July 3, 2013 Author Posted July 3, 2013 Thanks, David. I'm glad to be getting another arrow in the quiver.
Recommended Posts
This topic is 4218 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