我想通过引用ADO Library的方式将数据通过msflexgird , datagrid ,mshflexgrid的方式显示 set DATAGIRD.datasource=adoRec set msflexgrid.datasource=adoRec 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 已经照您的给出的方式写过,但还是会报错 “什么行集合什么的“只有在mshflex下用set mshflex.recordset=adoRec 才正常,请问这是什么原因? Dim adoCnn As New adodb.Connection Dim adoCmm As New adodb.Command Dim adoRec As New adodb.Recordset adoCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Program Files\Microsoft Visual Studio\VB98\NWIND.MDB;Persist Security Info=False" adoCmm.ActiveConnection = adoCnn adoCmm.CommandType = adCmdText adoCmm.CommandText = "select * from Customers" Set adoRec = adoCmm.Execute Set MSHFlexGrid1.DataSource = adoRec 求一个网页监控的思路 语句错误 怎么让DataGrid中的数据由鼠标一条一条滚动 如何绘制 n次 插值曲线,n=1,2,3 如何将text文本中的空格删掉 如何在dbgrid的打印程序中设置字体、字号及打印纸张 从数据库中取得了一个奇怪的日期"2003 七月 7 0:00" ActiveSkin 注册码谁能告诉小弟?????????? 为什么我的透明label控件放在别的控件上时,总是在别的控件的下面,无法相应呢?100分!急! 一个很棘手的问题,希望高手指点! 我是菜鸟,请问这样的地址怎样的调用? 如何在VB里用ADO连.DBF文件?
set mshflex.recordset=adoRec 才正常,请问这是什么原因?
Dim adoCmm As New adodb.Command
Dim adoRec As New adodb.Recordset
adoCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Program Files\Microsoft Visual Studio\VB98\NWIND.MDB;Persist Security Info=False"
adoCmm.ActiveConnection = adoCnn
adoCmm.CommandType = adCmdText
adoCmm.CommandText = "select * from Customers"
Set adoRec = adoCmm.Execute
Set MSHFlexGrid1.DataSource = adoRec