I
ISMAILRAJPUT
this.oleDbSelectCommand2.CommandText = "SELECT kitaab, waraq FROM shajra
WHERE mahal = '" + comboBox1.SelectedItem.ToString() + "' ANDperi LIKE '%" +
textBox4.Text.ToString() + "%'";
this.oleDbSelectCommand2.Connection = this.oleDbConnection1;
this.oleDbDataAdapter2.Fill(dataSet2 , "mydata2");
textBox1.Text = dataSet2.Tables["mydata2"].Rows.Count.ToString();
why this code is not returning any rows even if there are appropriate
records in the table? i think problem is with like operator because without
like operator it works fine . Give me some idea
WHERE mahal = '" + comboBox1.SelectedItem.ToString() + "' ANDperi LIKE '%" +
textBox4.Text.ToString() + "%'";
this.oleDbSelectCommand2.Connection = this.oleDbConnection1;
this.oleDbDataAdapter2.Fill(dataSet2 , "mydata2");
textBox1.Text = dataSet2.Tables["mydata2"].Rows.Count.ToString();
why this code is not returning any rows even if there are appropriate
records in the table? i think problem is with like operator because without
like operator it works fine . Give me some idea