ADO控件连接数据库问题
出错提示:为一标题为“Adodc1”的对话框,内容为 “对象关闭时,不允许操作” ,请指点这是那里不对,
Dim sql As String
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\ACCESS数据库\db1.mdb;Persist Security Info=False"
Adodc1.CommandType = adCmdText
sql = "insert into 学生表 (ID,姓名,班级,性别,民族,年龄) values(30393,'邹六峰','高一一班',0,'汉',20) "
Adodc1.RecordSource = sql
Adodc1.Refresh