asp代码中有个
set rst1=conn.Execute("insert into user(uuser,ucode) values('"&request.form("f_user")&"','"&request.form("f_code")&"')")
但运行时出现:
   
   Microsoft JET Database Engine 错误 '80040e14' INSERT INTO 语句的语法错误。 /lianxi/result.asp,行 34 34行就是insert 那一行,请问到底哪错了啊

解决方案 »

  1.   

    是VB??试试
    request.form("f_user").ToString()
      

  2.   

    我老师教了我一个办法,你用response.write输出sql语句试试看哪里不对,这样可以快速的找到错误的地方。
      

  3.   

    request.form("f_user")
    request.form("f_code") 有可能是null,这样就会报错了
      

  4.   

    感觉没什么不对啊,response.write输出也没看见错啊
      

  5.   

    response.wrute("")输出insert语句看看
      

  6.   

    问题解决了
    连接数据库的代码用"driver={MicroSoft Access Driver (*.mdb)};dbq="&server.mappath("db1.mdb")
     我用的是conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("db1.mdb")
    所以不行