Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
在该事件中适用外部数据源中自定义的用户_UserName 吗?
这个时候变量_UserName 有效吗?下面的代码能执行吗?
Dim ld As String
Dim cmd As New SQLCommand
cmd.C
cmd.CommandText = "Select Group From {_Users} Where Name = '" & _UserName & "'"
ld = cmd.ExecuteScalar()
If ld="用户" Then
e.SelectString = "Select * From {表A} where 列一=False"
Else
e.SelectString = "Select * From {表A}"
End If