private void button4_Click(object sender, EventArgs e) { connection.Open(); cmd = connection.CreateCommand(); string CommandText = "select * FROM edsdb WHERE reg_numb LIKE '" + textBox16.Text + "%' AND reg_date LIKE'" + textBox17.Text + "%' AND last_name LIKE '" + textBox18.Text + "%' AND first_name LIKE '" + textBox19.Text + "%' AND house_numb LIKE '" + textBox20.Text + "%' AND street LIKE '" + textBox21.Text + "%' AND city LIKE '" + textBox22.Text + "%' AND phone_numb LIKE '" + textBox23.Text + "%' AND pa_numb LIKE '" + textBox24.Text + "%' AND division LIKE '" + textBox25.Text + "%' AND dob LIKE '" + textBox32.Text + "%' AND age LIKE '" + textBox33.Text + "%' AND doc_type LIKE '" + textBox34.Text + "%' AND red LIKE '" + textBox35.Text + "%' AND blue LIKE '" + textBox36.Text + "%' AND undecided LIKE '" + textBox37.Text + "%'"; SQLiteDataAdapter adapter = new SQLiteDataAdapter(CommandText, connection); ds.Reset(); adapter.Fill(ds); DT = ds.Tables[0]; dataGridView5.DataSource = DT; connection.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)