I am writing an iOS app that uses a SQLite database. I am not sure about a SQlite statement.
The Name of the Table is "Questions"
The Name of the Field is "Chapter"
If I use this statement it will return all records that have the chapter name as "Fire Behavior"
Code: Select all
put "SELECT * FROM Questions WHERE Chapter='Fire Behavior'" into tSQLQuery
When I use this line of code it does not work.
Code: Select all
put "SELECT * FROM Questions WHERE Chapter=' " & txtK & " ' " into tSQLQuery
Any help would be greatly appreciated.
Jim