Dim a As ADODB.Connection
Dim b As ADODB.Recordset
Set a = New ADODB.Connection
Set b = New ADODB.Recordset
d = Text1.Text
a.Open "liu", "", ""
b.Open "select * from corpinf where corpid like '" & d & "'", a, 1
b("corpid") = Trim(Text1.Text)
提示”对象和提供者不能执行所需的操作“,请多多指点!
Dim b As ADODB.Recordset
Set a = New ADODB.Connection
Set b = New ADODB.Recordset
d = Text1.Text
a.Open "liu", "", ""
b.Open "select * from corpinf where corpid like '" & d & "'", a, 1
b("corpid") = Trim(Text1.Text)
提示”对象和提供者不能执行所需的操作“,请多多指点!
解决方案 »
- Anycell Report 中国式报表控件2.4发布啦,请多支持^^
- 消失好长时间了,放200吧!
- 怎么使用 FindWindowEx 或 FindWindow 模糊查询符合条件的窗口
- 用VB如何读数据文件和文本文件?
- 寻求好的在PictureBox里做图像特效显示时,图像的调度方案。
- 大家再来猜个迷,进者有分...欢迎灌水..................详细内容请进入
- 用Access数据库能否不用设数据源
- ADO用使用存储过程老说我纪录集关闭,不知道什么原因 ? 十万火急
- WORK GROUP MODE 下有可能使用MSMQ的服务吗?
- 如何在图片框中显示网上的图片
- 怎樣將鼠標移到按鈕command上(程序動態移動)
- subForm.Show ,parentForm 如果。。。
a.connectionstring="ACCESS文件的路径"
Dim Rs As New ADODB.Recordset CN.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\NWIND.MDB;Persist Security Info=False"
CN.Open Rs.CursorLocation = adUseClient
Rs.Open "select * from employees", CN, adOpenDynamic, adLockBatchOptimistic Set DataGrid1.DataSource = Rs