- 分享
- 0
- 人气
- 0
- 主题
- 33
- 帖子
- 2454
- UID
- 54039
- 积分
- 2537
- 阅读权限
- 20
- 注册时间
- 2006-12-13
- 最后登录
- 2021-10-16
- 在线时间
- 2400 小时
|
Option Explicit
Dim sql As String
Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
sql = "select * from biao1 where riqi =#" & DTPicker1.Value & "#"
cn.ConnectionString = " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\ts.mdb; Persist Security Info=False"
cn.Open
rs.CursorLocation = adUseClient
rs.Open sql, cn, adOpenDynamic, adLockOptimistic
rs.AddNew
rs.Fields(0) = Date$
rs.Fields(1) = "ABC"
rs.Fields(2) = "SAT"
rs.Update
Set MSHFlexGrid1.DataSource = rs
End Sub
大大们这个是什么意思【红字加大的哪一行】? |
|