我使用如下的语句,没有任何问题!
        ADOTable1->CursorType=ctDynamic;
        ADOTable1->Active=true;
        ADOTable1->Insert();
        ADOTable1->FieldByName("xianName")->Value="asddf";
        ADOTable1->FieldByName("Code")->Value=14234;
        ADOTable1->Post();建议:
  检查ODBC驱动,Ole db (jet)等驱动是否正确,如果不能确定,重装Access
  检查数据库的设计,比如主健、所用列的数据类型

解决方案 »

  1.   

            ADOTable1->CursorType=ctDynamic;
            ADOTable1->Active=true;
            ADOTable1->Insert();
            ADOTable1->FieldByName("xianName")->Value="asddf";
            ADOTable1->FieldByName("Code")->Value=14234;
            ADOTable1->Post();没有错误!
    监察您的ODBC(jet)驱动,如果可能重装Access
    检查表的定义,包括所有字段的设置,尤其注意主键、数据类型等。
    可得的话,在此列出!
      

  2.   

            ADOTable1->CursorType=ctDynamic;
            ADOTable1->Active=true;
            ADOTable1->Insert();
            ADOTable1->FieldByName("xianName")->Value="asddf";
            ADOTable1->FieldByName("Code")->Value=14234;
            ADOTable1->Post();
    没问题,好使的
    检查你的odbc (JET)驱动
    检查数据库设计,可能把这个表的结构列出来