以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  菜单代码  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=64171)

--  作者:爱相随
--  发布时间:2015/2/6 11:47:00
--  菜单代码

老师,请帮我看一下菜单代码错在哪里,谢谢:

If Tables("ZJSQB").current("XZH")= True Then
        If Tables("ZJSQB").current.IsNull("SJSB") Then
            MessageBox.Show("不能审核未经上报的数据!.")
        Else
            If Tables("ZJSQB").current.IsNull("合约") Then
                 MessageBox.Show("审核意见为空,请检查!.")
          Else              
            r("CBB2") = User.Name
            r("时间2") = Date.Today()
            r.Save()
        End If
     End If
    End If
提示:

编译错误:‘R’ is not acce accesible in this context because it is \'Private\'

错误代码: r("CBB2") = User.Name
请老师修改一下,谢谢


--  作者:Bin
--  发布时间:2015/2/6 11:49:00
--  
你R在哪里? 你声明了R了吗?  这个R是什么东西?
--  作者:爱相随
--  发布时间:2015/2/6 11:50:00
--  
哦,知道了。。。
--  作者:爱相随
--  发布时间:2015/2/6 11:50:00
--  
上次有过这样相同的问题,谢谢