C# ... this works
string sql = "SELECT * FROM STATEMENTS WHERE [idTrip] = '2015Q15'";
command.CommandText = sql;
But when I try to replace the '2015Q15' with a variable as follows, it does not work
string sql = "SELECT * FROM STATEMENTS WHERE [idTrip] = '" + myVariable + "'";
command.CommandText = sql;
When I run through line by line, I can see that the str sql looks fine but it does not select any records