first off… you have “FROMT” not “FROM” and your quotes are ALL screwed up
SQL= _
"SELECT item1,item2,item3,item4" +_
" FROM table_1 "+_
" WHERE item1='"+cbmbobox1.text+"'"+_
" and item2='"+cmbbox2.text+"'"+_
" and item3=1 and item4=2"
Look REALL carefully at the places with ’ are used and where " is used and particularly with the are used side by side
I use the above format as it makes it MUCH easier to read and find errors like this
You can add a TextField at the bottom of your window and place there a copy of your SQL statement / error messages returned from SQLite (when one is reported).
Do not forget to remove it / the code to write data there before shipping the product / when you know you do not need it anymore.
I use Courier (a mono proportional font) as the IDE default font, so I can watch and see multiple spaces
When I write statements like Dave does above, I always place the space at the “end of the line” (before " +_)
I try to write SQL Statements as strings in a variable and use that variable with SQLSelect / SQLExecute.
I also add spaces to set a vertical ‘line’ of < / " + " / >
SQLcmd = "SELECT item1, item2, item3, item4 " +_
"FROM table_1 " +_
"WHERE item1 ='" + ComboBox1.Text + " '" +_
"AND item2 = '" + ComboBox2.Text + " '" +_
"AND item3 = 1 AND item4 = 2"
I hope the above will display some vertical aligments (+ for example).
At last, also like Dave, I use the SQLite commands / whatever (FROM, WHERE, AND, ) CAPITALYZED.