-- 作者:hiliuyong
-- 发布时间:2012/10/16 12:45:00
-- [求助]字符串链接报错,
\'查找数据库对应的权限 Dim cmd As New SQLCommand Dim dt As DataTable Dim dr As DataRow cmd.C
cmd.CommandText = "Select * From {UserPower} Where [UserID] = \'" & tmpUserID & "\' AND Enabled=\'1\'" dt = cmd.ExecuteReader For Each dr As DataRow In dt.DataRows \'DataTables("UserPower").PeplaceFor("Enabled", 1, "UserID = \'" & dr("UserID") & "\' AND Ribb AND Groups= \'" & dr("Groups") & "\' AND Items= \'" & dr("Items") & "\' ")
Next
红色为报错的地方 此主题相关图片如下:报错.jpg
|