Taken that the value in the database is boolean, not a string, you should use
for the value, not
. Also ensure that you're using a correct value in the WHERE clause.
I think tThe best way to deal with this would be to use OleDbParameter Class (System.Data.OleDb)
]. This way you would easily ensure that data is handled with correct data types and you wouldn't have the risk of SQL injection, see SQL injection - Wikipedia