回复:(cdut2004)mshflexgrid控件动态更新的问题
我写了一段:MSHFlexGrid1与AOD数据控件绑定 ,当你的记录改变时,及时查询数据并显示在MSHFlexGrid1控件中
Dim Conn As New ADODB.Connection
Dim Rc As New ADODB.Recordset
Dim Sql As String
If Wh = "" Then
Sql = "select * from 读者名细 " & "order by 读者编号"
Else
Sql = "select * from 读者名细 where " & Wh
End If
Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=app.path & "\book.MDB";Persist Security Info=False"
Conn.Open
Rc.Open Sql, Conn, adOpenKeyset, adLockOptimistic
Set MSHFlexGrid1.DataSource = Rc
MSHFlexGrid1.Refresh
PS: 你是理工的???