1个回答
2013-12-11
展开全部
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim cn_1 As String, sql_1 As String
cn_1 = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\data.mdb"橡桥让
Set cn = New ADODB.Connection
cn.Open cn_1
sql_1 = "梁局select * from 表1"消枝
Set rs = New ADODB.Recordset
rs.Open sql_1, cn, adOpenStatic, adLockBatchOptimistic
Set MSHFlexGrid1.DataSource = rs
Dim rs As New ADODB.Recordset
Dim cn_1 As String, sql_1 As String
cn_1 = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\data.mdb"橡桥让
Set cn = New ADODB.Connection
cn.Open cn_1
sql_1 = "梁局select * from 表1"消枝
Set rs = New ADODB.Recordset
rs.Open sql_1, cn, adOpenStatic, adLockBatchOptimistic
Set MSHFlexGrid1.DataSource = rs
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询