MYSQL全选报错,提示找不到“窗口_Table1”表类型:SQLTable
方法一:Dim t As Table = e.Form.Controls("窗口_Table1").Tables
方法2:Dim t As Table = e.Form.Controls("窗口_Table1").DataTables
For Each r As Row In t.Rows
r("选中") = True
Next
此主题相关图片如下:mysql全选报错.jpg
Dim t As Table = e.Form.Controls("确定窗口的名称就叫窗口?_Table1").
Table
Dim t As Table = e.Form.Controls("确定窗口的名称就叫窗口?_Table1").Table |
Dim t As Table = e.Form.Controls("导入窗口_Table1").Table
在MYSQOL是报错,在ACCESS是可以,如何解决?
窗口名称、控件、表类型肯定有一个不对。或者窗口没有打开
[此贴子已经被作者于2024/2/8 14:47:05编辑过]
'Dim t As Table = e.Form.Controls("测试窗口_Table1").Table
Dim t As Table = e.Form.Controls("测试窗口_测试表").Table
For Each r As Row In t.Rows
r("选中") = True
Next
窗口名称、控件、表类型肯定有一个不对。或者窗口没有打开
窗口名称、控件、表类型都对。窗口没有打开,还是报错-找不到名称("测试窗口_测试表") |
此主题相关图片如下:mysql全选报错2.jpg |
Tables("测试窗口_测试表").Current("选中") = True执行后,只执行一行,光标所在行
需求,是你全选-窗口上当前表的显示的数据,执行下面代码,报错说找不到对象
Dim t As Table
For Each r As Row In t.Rows
Tables("测试窗口_测试表").Current("选中") = True
Next
Dim t As Table = Tables("测试窗口_测试表")
For Each r As Row In t.Rows
r("选中") = True
Next