J
Jo Segers
Hi,
The code SQLstatement below does not return any rows, but if I remove
the WHERE-clause I get the full table as the result.
private OleDbConnection GetDBaseIIIConnection()
{
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\;Extended Properties=dBASE III";
return new OleDbConnection(connectionString);
}
private void button2_Click(object sender, System.EventArgs e)
{
dataSet.Clear();
string query = "SELECT * FROM [imsyncro.it] WHERE synchroid = 12";
OleDbCommand oComm = new OleDbCommand(query, GetDBaseIIIConnection());
oComm.Connection.Open();
OleDbDataAdapter a = new OleDbDataAdapter(oComm);
a.Fill(dataSet, "imsyncro");
listBox.Items.Add(dataSet.Tables["imsyncro"].Rows.Count);
oComm.Connection.Close();
}
The code SQLstatement below does not return any rows, but if I remove
the WHERE-clause I get the full table as the result.
private OleDbConnection GetDBaseIIIConnection()
{
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\;Extended Properties=dBASE III";
return new OleDbConnection(connectionString);
}
private void button2_Click(object sender, System.EventArgs e)
{
dataSet.Clear();
string query = "SELECT * FROM [imsyncro.it] WHERE synchroid = 12";
OleDbCommand oComm = new OleDbCommand(query, GetDBaseIIIConnection());
oComm.Connection.Open();
OleDbDataAdapter a = new OleDbDataAdapter(oComm);
a.Fill(dataSet, "imsyncro");
listBox.Items.Add(dataSet.Tables["imsyncro"].Rows.Count);
oComm.Connection.Close();
}