前端之家收集整理的这篇文章主要介绍了
vb实现查询sql,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
'部件里
添加ADODC
'部件
添加DataGrid
Private Sub Command1_Click()
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:22.mdb

ersist Security Info=False" Adodc1.CommandType = adCmdText Adodc1.RecordSource = "select * from itb1" Adodc1.Refresh Set DataGrid1.DataSource = Adodc1 End Sub