各位高人,我是新手,我想将ACCESS数据库中的某个表单的数据一一读入dataset的table表中的相对应的列中,请各位老大指点一下,给段代码。

解决方案 »

  1.   

    use "OleDBDataAdapter.Fill" method
    reference:
    ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/Cpqstart/html/cpsmpnetsamples-howtodataadonet.htm#cpsmpAdorstodatasetSample
      

  2.   

    使用OleDb来实现,具体使用以下两个:OleDbConnection
    OleDbDataAdapter使用方法,msdn上有,非常方便。
      

  3.   

    楼上的几位大哥能不能具体指点一下,我要做的功能具体是这样的:
    access中的数据表单与dataset中的数据表单字段相同,其中都有一个字段“year”,我想做把access表中year=2005的所有记录读到dataset表中。
    希望高人指点一下
      

  4.   

    Select * from table where year=2005
      

  5.   

    SQL statement:
    select * from yourtable where [year] = 2005//Caution: use "[]" to encapsule your field name.