strSQL = "select test1.no,name,style from test1,test2 where test1.no=test2.no and test2.no=" & 1
Adodc1.RecordSource = strSQL
Adodc1.Recordset.Fields("name").Value = "aa"
Adodc1.Recordset.Update
Adodc1.Refresh
上面运行时没出现问题,可改成下面后就有问题了.提示:缺少更新或刷新的键列信息!WHY?
strSQL = "select test1.no,name,style from test1,test2 where test1.no=test2.no and test2.no=" & 1
Adodc1.RecordSource = strSQL
Adodc1.Recordset.Fields("style").Value = "AAAA"
Adodc1.Recordset.Update
Adodc1.Refresh
请高手指点!
急!!!
Adodc1.RecordSource = strSQL
Adodc1.Recordset.Fields("name").Value = "aa"
Adodc1.Recordset.Update
Adodc1.Refresh
上面运行时没出现问题,可改成下面后就有问题了.提示:缺少更新或刷新的键列信息!WHY?
strSQL = "select test1.no,name,style from test1,test2 where test1.no=test2.no and test2.no=" & 1
Adodc1.RecordSource = strSQL
Adodc1.Recordset.Fields("style").Value = "AAAA"
Adodc1.Recordset.Update
Adodc1.Refresh
请高手指点!
急!!!
解决方案 »
- 怎么设置应用按钮只响应有变化数据的TabStrip页面或只响应当前TabStrip页面内容改变?
- MshFlexGrid固定列问题
- VBA5.dll文件用途
- 有没有VB的好用些的打印控件呀,除了水晶报表外,最好是免费的.
- 如何動態修改Crystal Report中的OLE Object圖片
- IE打印的问题.
- (typ)一个关于下载网页所有图片的问题
- Excel Object Library 不支持后绑定吗?
- 如何才能让用API函数实现的文件打开对话框能够选择多个文件?
- 请问各位大哥。 mp3player.ocx 的 name 和 pass 是什么???
- 哪里有VB自学材料下载呢
- 判断图片是否存在的语句是什么啊?望指教!
各种属性跟name完全一样.
目前的操作方式可以简化一下:
dim cnn as new adodb.connectionstrSQL = "Upate test1 set style='"AAAA"' from test1,test2 where test1.no=test2.no and test2.no=" & 1 cnn.execute strsql
没试成功.能把代码写全点么?
Thank you!