我已經在程式中把AdoCn.ConnectionString設為:
PROVIDER=Microsoft,Jet.OLEDB.4.0
可是當我:
Set AdoRs = New ADODB.Recordset
With AdoRs
.ActiveConnection = AdoCn
.Source = "myTableName"
.LockType = adLockOptimistic
.CursorType = adOpenStatic
.Open
End With
set DataGrid1.DataSource = AdoRs
DataGrid1卻無法顯示資料?我大約半年沒寫資料庫了!
一定是忘了什么,請幫我把腦袋里的記憶找回來!謝謝!!!