如何有条件的读取dbf文件的数据
string excelname=wangyu;string DBFtable = textBox2.Text.Trim();//一路径下的dbf数据库,例如:C:\XXX.dbf
System.Data.Odbc.OdbcConnection DBFconn = new System.Data.Odbc.OdbcConnection(@"Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=" + DBFtable + ";Exclusive=No;NULL=NO;Collate=Machine;BACKGROUNDFETCH=NO;DELETED=NO");
DBFconn.Open();
OdbcCommand DBFcmd = DBFconn .CreateCommand();
* From" +DBFtable+ "Where Xm="+excelname;
OdbcDataReader DBFReader=DBFcmd .ExecuteReader ();
DBFReader .Read ()为什么不能读取到数据呢?
请大侠指点一下!谢谢!
唉,没分了,给不了您了!