Hi!
I wrote these code to make two filters (the company and year). Means I need to filter any company with the same company's name with the year 'x'. But the code doesnt obey maybe I do a mistake somewhere. These is my codes:
...
string commandString = "select top 1 * from Firme where company='" + cbxCompany.Text + " and =year" +txtYear.Text + "' order by BillNumeber desc";
...
}
read.Close();
sqlCon.Close();
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Guest UserRank #816 · 2.8K reputationPosted Apr 19, 2016, 12:34 AM EDT
Guest UserRank #816 · 2.8K reputationPosted Apr 18, 2016, 6:27 AM EDT
IsraelRank #1,223 · 1.5K reputationPosted Apr 18, 2016, 6:48 AM EDT
IsraelRank #1,223 · 1.5K reputationPosted Apr 19, 2016, 4:40 AM EDT