vb6.0中如何用listbox读取数据库中字段的所有数据…?
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
展开全部
换用datalist
Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\bj-drive\My Documents\c.mdb;Persist Security Info=False"
Adodc1.RecordSource = "select * from 表1"
Adodc1.Refresh
Set DataList1.RowSource = Adodc1
DataList1.BoundColumn = "rq"
DataList1.ListField = "rq"
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\bj-drive\My Documents\c.mdb;Persist Security Info=False"
Adodc1.RecordSource = "select * from 表1"
Adodc1.Refresh
Set DataList1.RowSource = Adodc1
DataList1.BoundColumn = "rq"
DataList1.ListField = "rq"
End Sub
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询