求帮助 Adodc.RecordSourcE 问题

a8598048 2013-04-02 04:57:00
Private Sub Command2_Click()
Set DataGrid2.DataSource = Nothing

Adodc2.ConnectionString = strcn
Adodc2.RecordSource = "select*from 物料表 where 物料编号=" & Val(Text1.Text) & ""
If Text1.Text = "" Or Adodc2.RecordSource = "" Then
MsgBox "请重新输入物料编号"
Adodc2.Refresh

Else
DataGrid2.Refresh
'datagrid绑定ado
Set DataGrid2.DataSource = Adodc2
DataGrid2.ReBind
Call iniDgBt '初始化datagrid的表头
End If

End Sub
...全文
69 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

695

社区成员

发帖
与我相关
我的任务
社区描述
提出问题
其他 技术论坛(原bbs)
社区管理员
  • community_281
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧