奇怪,DataGrid1怎会没有内容显示,请各位指点.
我的程序如下,为何DataGrid1里没有显示内容.请各位指点
Dim db As adodb.Connection Dim rs As adodb.Recordset Set db = New adodb.Connection Set rs = New adodb.Recordset db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\成品仓管理系统\进库表.mdb;Persist Security Info=False" db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\成品仓管理系统\进库表.mdb;Persist Security Info=False" rs.Open "SELECT * FROM CP", db, adOpenStatic, adLockReadOnly Set DataGrid1.DataSource = rs