A quick search of google reveals that the format for an OleDb connection string to Excel should look like this:
Provider=Microsoft.Jet.OLEDB.12.0;Data Source=Filename;Extended Properties="Excel 12.0";
Could it be that you are confusing yourself with the excessive use of string concatenations? I always find it useful to use String.Format in these instances:
Code:
string connectionString = String.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties=\"Excel 12.0\";", txtFilePath.Text);
Or could it simply be the missing quotes around the "Excel 12.0" part?
/- Sam Judson : Wrox Technical Editor -/