why is this not working ? It's something about the commandstring syntax near = but I can't seem to figure it out, the online examples seem exactly the same.
Edit: Activated In is a column.
examples from How to select data from database with many filter options?
private void btnDist_Click(object sender, EventArgs e)
{
string cmdText = "SELECT * FROM Inventory WHERE Rep <> '#NA' AND Activated In = '#NA'";
SqlDataAdapter adapter = new SqlDataAdapter(cmdText, GetConnection());
DataSet distDS = new DataSet();
adapter.Fill(distDS);
dataGridView1.DataSource = distDS.Tables[0].DefaultView;
}