最好指定连接字符串
cn.ConnectionString="PROVIDER=Microsoft.jet.OLEDB.4.0;Data Source=" & server.MapPath("../db1.mdb") 'mappah里的根据情况改一下
cn.open
= "Insert into member (member, descr,address,image) values('" & member & "','" & descr & "','" & address & "','" & Image & "')"
数据库里没有字段descr,是desc,因此要改成
= "Insert into member (member,
desc,address,image) values('" & member & "','" & descr & "','" & address & "','" & Image & "')"
数据库定义的字段都不是必填字段,因此可以为空,不过字段大小都是50,也就是最多存放50个字符。