DataList时代有这样的代码:
Dim cmd As New SQLCommand
Dim dt As DataTable
cmd.CommandText = "SELECT * From {订单} Where 产品 = 'PD01'"
dt = cmd.ExecuteReader()
Dim dst As WinForm.DataList = e.Form.Controls("DataList1")
dst.DataTable = dt
dst.Build()
请教:窗口Table 怎么应用上面的代码? 下面这样不行: 出错说:Identifier expected !
Dim cmd As New SQLCommand
Dim dt As DataTable
cmd.CommandText = "SELECT * From {订单} Where 产品 = 'PD01'"
dt = cmd.ExecuteReader()
Tables("窗口1_Table1").DataSource = dt
Tables("窗口1_Table1").Build()
[此贴子已经被作者于2009-11-14 21:24:01编辑过]