I suspect that the database has wrong data or the query is wrong.
If you get an empty result, the query is executed and the result is "no result" for that query.
So, try this:
Code: Select all
put "SELECT * FROM sales WHERE sales_salesDate >= '2014/01/01' AND sales_salesDate <= 2014/12/31'; COMMIT;" into tSQL
put revDataFromQuery(TAB, return, conID,tSQL ) into tResults
answer tResults
and this:
Code: Select all
put "SELECT * FROM sales WHERE sales_salesDate >= '2014/01/01' ; COMMIT;" into tSQL
put revDataFromQuery(TAB, return, conID,tSQL ) into tResults
answer tResults
and this:
Code: Select all
put "SELECT * FROM sales ; COMMIT;" into tSQL
put revDataFromQuery(TAB, return, conID,tSQL ) into tResults
answer tResults
Note that I added the ";" and the end of the query. On SQLite is not necessary. Moreover I added the COMMIT at the end, because if you started a
transaction, you'll never get a result until you launch the commit command.
Try the previous codes with and without COMMIT.