我是DELPHI初学者,请教如何用DELphi访问access数据库?
能详细些介绍一下怎么配吗? 谢过先, 在线等待......

解决方案 »

  1.   

    procedure Tmain.FormShow(Sender: TObject);var
    s,dbpath,constr:string;
    begin
    dm1.ADOTable1.Active:=false;
    dbpath :=(ExtractFilePath(Application.ExeName))+'\database\'+'sell2003.mdb';
    constr:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+dbpath+';Persist Security Info=False';
    dm1.ADOConnection1.ConnectionString:=constr;
    listname:='商品信息';
      

  2.   

    你可以以通过双击Adoconnection的connetctstring的属性一步步加入,
    在第一步要选取Microsoft.Jet.OLEDB.4.0,
    再把字拷出来就可以得到你所要的connectstring!