vb DataGrid1不能刷新
建了一个adodc1和datagrid1和command1
command1的代码如下:
Private Sub Command1_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = OpenDatabase(App.Path & "\one.mdb")
Set rs = db.OpenRecordset("sfdata")
tlsal = "UPDATE sfdata SET ye=0"
db.Execute tlsal
Adodc1.Recordset.Requery
End Sub
每次要按好几次command1 datagrid1的内容才会清为0
为什么按1次不行呢?