老师:您好!
我的窗口中假设有两个表控件,按照您的指导,我在属性中设置了sqltable。执行后出现了如下错误信息:
对于不返回任何基表信息的 SelectCommand 不支持动态 SQL 生成。
此主题相关图片如下:764ec82d9998a21684c4c48cdcbe603.jpg
我的代码:
dataTables("项目进度计算表").LoadFilter = ""
DataTables("项目进度计算表").Load
Dim b1 As WinForm.TextBox = e.Form.Controls("TextBox1")
Dim value As String = b1.value
Dim Names() As String = Value.Split(chr(13))
Dim v As String
Dim cmd As New SQLCommand
For Each name As String In Names
Dim n As Integer = 0
name = name.replace(chr(10), "")
n = n + 1
v = Str(n)
Dim xx As String = "Table" & Trim(v)
Tables("项目工序进度提示屏_" & xx & "").fill("S elect [序号],[上一工序],[产品名称] F rom {项目进度计算表} where 项目号='" & name & "'", False)
Next
谢谢指导!