在VB里用一个窗体显示数据库某个表信息的操作是什么

2024-11-22 19:46:16
推荐回答(1个)
回答1:

Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db1.mdb;Persist Security Info=False"
Adodc1.CommandType = adCmdTable
Adodc1.RecordSource = "毕老辩姓名手缺表含辩"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
Set DataGrid1.DataSource = Adodc1
End Sub