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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Apr 19, 2016, 4:34 AM
IsraelPosted Apr 19, 2016, 8:40 AM
IsraelPosted Apr 18, 2016, 10:48 AM
Guest UserPosted Apr 18, 2016, 10:27 AM