注册 登录
编程论坛 VB6论坛

ADODC连不上数据库

zxbvic 发布于 2013-09-04 16:18, 530 次点击
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\VBtcp\123.mdb;Persist Security Info=False"
= adCmdTable
Adodc1.RecordSource = "select * from 库存"
我看网上别人也是这么写的,为啥我连不上呢,我在控件属性上设置路径就能连上,datagrid 有显示,用代码就连不上,dtatgrid无显示
3 回复
#2
Artless2013-09-05 12:48
Adodc1.Refresh
#3
chen35232013-09-06 16:48
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\VBtcp\123.mdb;Persist Security Info=False"
= adCmdTable
Adodc1.RecordSource = "select * from 库存"
Adodc1.Refresh
set dtatgrid.d**=Adodc1   (英语水平差,**记不起)
#4
LK8682013-09-08 22:09
= adCmdText(或adCmdUnknown) ' 不是 adCmdTable
1