I'm having problem with my C# Windows Form Application I need to select data by time period Here's my code:
string queryAll = "SELECT * FROM EX_SUM WHERE YEAR
BETWEEN '"+ from + "' AND '" + to + "'";
I have textboxes from and to But it not working. But when i'm write this code:
string queryAll = "SELECT * FROM EX_SUM WHERE YEAR BETWEEN '05.05.2010' and '05.05.2015' ";
it works correctly